Commit 8b32a042 authored by bcoudurier's avatar bcoudurier

do not write f2 if not interlaced

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16929 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9335551c
...@@ -620,9 +620,6 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st) ...@@ -620,9 +620,6 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
put_byte(pb, sc->interlaced); put_byte(pb, sc->interlaced);
// video line map // video line map
mxf_write_local_tag(pb, 16, 0x320D);
put_be32(pb, 2);
put_be32(pb, 4);
switch (st->codec->height) { switch (st->codec->height) {
case 576: f1 = 23; f2 = 336; break; case 576: f1 = 23; f2 = 336; break;
case 608: f1 = 7; f2 = 320; break; case 608: f1 = 7; f2 = 320; break;
...@@ -638,8 +635,12 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st) ...@@ -638,8 +635,12 @@ static void mxf_write_mpegvideo_desc(AVFormatContext *s, AVStream *st)
f1 *= 2; f1 *= 2;
} }
mxf_write_local_tag(pb, 16, 0x320D);
put_be32(pb, sc->interlaced ? 2 : 1);
put_be32(pb, 4);
put_be32(pb, f1); put_be32(pb, f1);
put_be32(pb, f2); if (sc->interlaced)
put_be32(pb, f2);
av_reduce(&dar.num, &dar.den, av_reduce(&dar.num, &dar.den,
st->codec->width*st->codec->sample_aspect_ratio.num, st->codec->width*st->codec->sample_aspect_ratio.num,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment