changeset 5125:2a0aabbef960 libavformat

fix riff subtitle timebase
author aurel
date Fri, 07 Aug 2009 23:57:52 +0000
parents cb7a82c74dcc
children 789e13163b3b
files riff.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/riff.c	Sun Aug 02 17:42:40 2009 +0000
+++ b/riff.c	Fri Aug 07 23:57:52 2009 +0000
@@ -497,7 +497,8 @@
     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{