aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-archive.com>2017-09-14 14:03:28 +0200
committerTobias Rapp <t.rapp@noa-archive.com>2017-09-18 08:56:28 +0200
commit35d6be199a55e906b517fdf561841d43cdd81e2a (patch)
tree14e3eadb4777d44dc8bd424ec59d523dfcae04c7
parent3af1060319b46005dbfb3b01f9104539caf30146 (diff)
downloadffmpeg-35d6be199a55e906b517fdf561841d43cdd81e2a.tar.gz
avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
-rw-r--r--libavformat/mxfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 7289e0b05b..da4d7b4e8e 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1810,7 +1810,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
stype = vs_pack[3] & 0x1f;
pal = (vs_pack[3] >> 5) & 0x1;
- if ((vs_pack[2] & 0x07) == 0x02)
+ if ((vsc_pack[2] & 0x07) == 0x02)
sc->aspect_ratio = (AVRational){ 16, 9 };
else
sc->aspect_ratio = (AVRational){ 4, 3 };