[FFmpeg-cvslog] avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames

Tobias Rapp git at videolan.org
Mon Sep 18 10:26:14 EEST 2017


ffmpeg | branch: master | Tobias Rapp <t.rapp at noa-archive.com> | Thu Sep 14 14:03:28 2017 +0200| [35d6be199a55e906b517fdf561841d43cdd81e2a] | committer: Tobias Rapp

avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames

Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35d6be199a55e906b517fdf561841d43cdd81e2a
---

 libavformat/mxfenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 };



More information about the ffmpeg-cvslog mailing list