Browse Source

fix riff subtitle timebase

Originally committed as revision 19607 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Aurelien Jacobs 16 years ago
parent
commit
188842ef7a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/riff.c

+ 2
- 1
libavformat/riff.c View File

@@ -497,7 +497,8 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
if(stream->frame_size && stream->sample_rate){
*au_scale=stream->frame_size;
*au_rate= stream->sample_rate;
}else if(stream->codec_type == CODEC_TYPE_VIDEO){
}else if(stream->codec_type == CODEC_TYPE_VIDEO ||
stream->codec_type == CODEC_TYPE_SUBTITLE){
*au_scale= stream->time_base.num;
*au_rate = stream->time_base.den;
}else{


Loading…
Cancel
Save