[SCM] libav/experimental: fix riff subtitle timebase

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:49:50 UTC 2013


The following commit has been merged in the experimental branch:
commit 188842ef7a79fbfbc5d53561b8c828edf3ace8b0
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Fri Aug 7 23:57:52 2009 +0000

    fix riff subtitle timebase
    
    Originally committed as revision 19607 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/riff.c b/libavformat/riff.c
index d03015d..43121af 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -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{

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list