diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-11-16 23:50:18 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-11-16 23:50:18 +0000 |
commit | b3c0fc76735f64268e6ec564fff7beb8bcbdb687 (patch) | |
tree | 659bd1e563cb4e2dab9f25e507107e9ebf65453c /libavformat | |
parent | 2b91d83ef31f8003b8068bbf31e0b9bed1f0aa24 (diff) | |
download | ffmpeg-b3c0fc76735f64268e6ec564fff7beb8bcbdb687.tar.gz |
av_find_stream_info(): set subtitle codec time_base
Originally committed as revision 25758 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 8fcbe96eea..937a615fc0 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2183,7 +2183,8 @@ int av_find_stream_info(AVFormatContext *ic) st->codec->frame_size = 0; st->codec->channels = 0; } - if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO){ + if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || + st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) { /* if(!st->time_base.num) st->time_base= */ if(!st->codec->time_base.num) |