[vlc-devel] commit: Fixed spu decoder when input rate is not the default value. ( Laurent Aimar )

git version control git at videolan.org
Wed Sep 10 22:41:55 CEST 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Sep 10 22:42:36 2008 +0200| [0ce69a7be7d0f56b086070835dfb6f8312aea7a5] | committer: Laurent Aimar 

Fixed spu decoder when input rate is not the default value.
(cherry picked from commit 02184fcdf33149d63023f77e69c6eb16071ee811)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ce69a7be7d0f56b086070835dfb6f8312aea7a5
---

 modules/codec/spudec/parse.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/spudec/parse.c b/modules/codec/spudec/parse.c
index aeb7c91..de175a3 100644
--- a/modules/codec/spudec/parse.c
+++ b/modules/codec/spudec/parse.c
@@ -33,6 +33,7 @@
 #include <vlc_common.h>
 #include <vlc_vout.h>
 #include <vlc_codec.h>
+#include <vlc_input.h>
 
 #include "spudec.h"
 
@@ -172,9 +173,8 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
 
             /* Get the control sequence date */
             date = (mtime_t)GetWBE( &p_sys->buffer[i_index] ) * 11000;
-            /* FIXME How to access i_rate
-                    * p_spudec->bit_stream.p_pes->i_rate / DEFAULT_RATE;
-            */
+            if( p_sys->i_rate )
+                date = date * p_sys->i_rate / INPUT_RATE_DEFAULT;
 
             /* Next offset */
             i_cur_seq = i_index;




More information about the vlc-devel mailing list