From 3faf7d1ea63a138281d885b4d51e974e3bbe9366 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <tjoppen@acc.umu.se>
Date: Sun, 23 Feb 2020 20:37:28 +0100
Subject: [PATCH] libavformat/mxf: Add support for 30, 48/1.001, 48, 100,
120/1.001 and 120 fps
---
libavformat/mxf.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 451cbcfb2c..e7851e53d5 100644
|
a
|
b
|
static const MXFSamplesPerFrame mxf_spf[] = {
|
| 139 | 139 | { { 1, 25 }, { 1920, 0, 0, 0, 0, 0 } }, // PAL 25 |
| 140 | 140 | { { 1, 50 }, { 960, 0, 0, 0, 0, 0 } }, // PAL 50 |
| 141 | 141 | { { 1, 60 }, { 800, 0, 0, 0, 0, 0 } }, |
| | 142 | { { 1, 30 }, { 1600, 0, 0, 0, 0, 0 } }, // 30 |
| | 143 | { { 1001, 48000 }, { 1001, 0, 0, 0, 0, 0 } }, // 47.95 |
| | 144 | { { 1, 48 }, { 1000, 0, 0, 0, 0, 0 } }, // 48 |
| | 145 | { { 1, 100 }, { 480, 0, 0, 0, 0, 0 } }, // 100 |
| | 146 | { { 1001, 120000 },{ 400, 401, 400, 401, 400, 0 } }, // 119.88 |
| | 147 | { { 1, 120 }, { 400, 0, 0, 0, 0, 0 } }, // 120 |
| 142 | 148 | }; |
| 143 | 149 | |
| 144 | 150 | static const AVRational mxf_time_base[] = { |
| … |
… |
static const AVRational mxf_time_base[] = {
|
| 149 | 155 | { 1, 25 }, |
| 150 | 156 | { 1, 50 }, |
| 151 | 157 | { 1, 60 }, |
| | 158 | { 1, 30 }, |
| | 159 | { 1001, 48000 }, |
| | 160 | { 1, 48 }, |
| | 161 | { 1, 100 }, |
| | 162 | { 1001, 120000 }, |
| | 163 | { 1, 120 }, |
| 152 | 164 | { 0, 0} |
| 153 | 165 | }; |
| 154 | 166 | |