Commit 480d8b9b authored by bcoudurier's avatar bcoudurier

fix subs track height, set track->height to codec height if not set

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17929 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a844ce10
...@@ -1681,8 +1681,7 @@ static int mov_write_header(AVFormatContext *s) ...@@ -1681,8 +1681,7 @@ static int mov_write_header(AVFormatContext *s)
return -1; return -1;
} }
track->height = track->tag>>24 == 'n' ? 486 : 576; track->height = track->tag>>24 == 'n' ? 486 : 576;
} else }
track->height = st->codec->height;
track->timescale = st->codec->time_base.den; track->timescale = st->codec->time_base.den;
av_set_pts_info(st, 64, 1, st->codec->time_base.den); av_set_pts_info(st, 64, 1, st->codec->time_base.den);
if (track->mode == MODE_MOV && track->timescale > 100000) if (track->mode == MODE_MOV && track->timescale > 100000)
...@@ -1712,6 +1711,8 @@ static int mov_write_header(AVFormatContext *s) ...@@ -1712,6 +1711,8 @@ static int mov_write_header(AVFormatContext *s)
track->timescale = st->codec->time_base.den; track->timescale = st->codec->time_base.den;
av_set_pts_info(st, 64, 1, st->codec->time_base.den); av_set_pts_info(st, 64, 1, st->codec->time_base.den);
} }
if (!track->height)
track->height = st->codec->height;
} }
mov_write_mdat_tag(pb, mov); mov_write_mdat_tag(pb, mov);
......
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