avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames
authorTobias Rapp <t.rapp@noa-archive.com>
Thu, 14 Sep 2017 12:03:28 +0000 (14:03 +0200)
committerTobias Rapp <t.rapp@noa-archive.com>
Mon, 18 Sep 2017 06:56:28 +0000 (08:56 +0200)
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
libavformat/mxfenc.c

index 7289e0b..da4d7b4 100644 (file)
@@ -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 };