Originally committed as revision 25758 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -2183,7 +2183,8 @@ int av_find_stream_info(AVFormatContext *ic) |
| 2183 | 2183 |
st->codec->frame_size = 0; |
| 2184 | 2184 |
st->codec->channels = 0; |
| 2185 | 2185 |
} |
| 2186 |
- if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO){
|
|
| 2186 |
+ if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || |
|
| 2187 |
+ st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
|
| 2187 | 2188 |
/* if(!st->time_base.num) |
| 2188 | 2189 |
st->time_base= */ |
| 2189 | 2190 |
if(!st->codec->time_base.num) |