Mercurial > libavformat.hg
changeset 4316:3c4392f087dc libavformat
stored height is stupidly /2 if interlaced
author | bcoudurier |
---|---|
date | Sat, 31 Jan 2009 06:46:42 +0000 |
parents | ea947a88be91 |
children | b978795a9e37 |
files | mxfenc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Sat Jan 31 06:44:25 2009 +0000 +++ b/mxfenc.c Sat Jan 31 06:46:42 2009 +0000 @@ -580,6 +580,7 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st) { + MXFStreamContext *sc = st->priv_data; ByteIOContext *pb = s->pb; int stored_height = (st->codec->height+15)/16*16; AVRational dar; @@ -590,7 +591,7 @@ put_be32(pb, st->codec->width); mxf_write_local_tag(pb, 4, 0x3202); - put_be32(pb, stored_height); + put_be32(pb, stored_height>>sc->interlaced); av_reduce(&dar.num, &dar.den, st->codec->width*st->codec->sample_aspect_ratio.num,