[FFmpeg-devel] [PATCH 2/3] lavf/mxfenc: set aspect ratio to 16:9 for dnxhd codec

Matthieu Bouron matthieu.bouron at gmail.com
Mon Jul 9 20:01:38 CEST 2012


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

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 858921d..47f44a4 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1522,6 +1522,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
 
     sc->index = ul_index + 16;
     sc->codec_ul =  &mxf_essence_container_uls[sc->index].codec_ul;
+    sc->aspect_ratio = (AVRational){ 16, 9 };
 
     mxf->edit_unit_byte_count = KAG_SIZE;
     for (i = 0; i < s->nb_streams; i++) {
-- 
1.7.11.1



More information about the ffmpeg-devel mailing list