# HG changeset patch # User bcoudurier # Date 1236751496 0 # Node ID bf48da0d792e4b86dc81c965b10880f5555ff047 # Parent 6b1e0c3211d66bad87f94f0d7f0b8d5717285f43 fix subs track height, set track->height to codec height if not set diff -r 6b1e0c3211d6 -r bf48da0d792e movenc.c --- a/movenc.c Wed Mar 11 01:36:25 2009 +0000 +++ b/movenc.c Wed Mar 11 06:04:56 2009 +0000 @@ -1681,8 +1681,7 @@ return -1; } track->height = track->tag>>24 == 'n' ? 486 : 576; - } else - track->height = st->codec->height; + } track->timescale = 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) @@ -1712,6 +1711,8 @@ track->timescale = 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);