Mercurial > libavformat.hg
comparison mxfenc.c @ 4338:e8dd4b55d8d1 libavformat
adjust size when not writing f2
author | bcoudurier |
---|---|
date | Mon, 02 Feb 2009 04:00:27 +0000 |
parents | 3d3c7fbfd910 |
children | eaecbe63bcc5 |
comparison
equal
deleted
inserted
replaced
4337:3d3c7fbfd910 | 4338:e8dd4b55d8d1 |
---|---|
595 ByteIOContext *pb = s->pb; | 595 ByteIOContext *pb = s->pb; |
596 int stored_height = (st->codec->height+15)/16*16; | 596 int stored_height = (st->codec->height+15)/16*16; |
597 AVRational dar; | 597 AVRational dar; |
598 int f1, f2; | 598 int f1, f2; |
599 | 599 |
600 mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 157); | 600 mxf_write_generic_desc(pb, st, mxf_mpegvideo_descriptor_key, 153+sc->interlaced*4); |
601 | 601 |
602 mxf_write_local_tag(pb, 4, 0x3203); | 602 mxf_write_local_tag(pb, 4, 0x3203); |
603 put_be32(pb, st->codec->width); | 603 put_be32(pb, st->codec->width); |
604 | 604 |
605 mxf_write_local_tag(pb, 4, 0x3202); | 605 mxf_write_local_tag(pb, 4, 0x3202); |