# HG changeset patch # User bcoudurier # Date 1232741746 0 # Node ID a5e558f1a64fe4e8e6a1dd5dde5727ad03ad81b8 # Parent d9c25a41b4610a1e0f31a4cba3928d43a9d63591 stored height is a multiple of 16 for mpeg2 diff -r d9c25a41b461 -r a5e558f1a64f mxfenc.c --- 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);