changeset 4277:a5e558f1a64f libavformat

stored height is a multiple of 16 for mpeg2
author bcoudurier
date Fri, 23 Jan 2009 20:15:46 +0000
parents d9c25a41b461
children 5bf611a311b9
files mxfenc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Fri Jan 23 20:03:57 2009 +0000
+++ b/mxfenc.c	Fri Jan 23 20:15:46 2009 +0000
@@ -557,6 +557,7 @@
 static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
 {
     ByteIOContext *pb = s->pb;
+    int stored_height = (st->codec->height+15)/16*16;
 
     mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key);
 
@@ -564,7 +565,7 @@
     put_be32(pb, st->codec->width);
 
     mxf_write_local_tag(pb, 4, 0x3202);
-    put_be32(pb, st->codec->height);
+    put_be32(pb, stored_height);
 
     mxf_write_local_tag(pb, 8, 0x320E);
     put_be32(pb, st->codec->height * st->sample_aspect_ratio.den);