Commit 0ce69a7b authored by Laurent Aimar's avatar Laurent Aimar

Fixed spu decoder when input rate is not the default value.

(cherry picked from commit 02184fcd)
parent ce2b15e3
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_codec.h> #include <vlc_codec.h>
#include <vlc_input.h>
#include "spudec.h" #include "spudec.h"
...@@ -172,9 +173,8 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu, ...@@ -172,9 +173,8 @@ static int ParseControlSeq( decoder_t *p_dec, subpicture_t *p_spu,
/* Get the control sequence date */ /* Get the control sequence date */
date = (mtime_t)GetWBE( &p_sys->buffer[i_index] ) * 11000; date = (mtime_t)GetWBE( &p_sys->buffer[i_index] ) * 11000;
/* FIXME How to access i_rate if( p_sys->i_rate )
* p_spudec->bit_stream.p_pes->i_rate / DEFAULT_RATE; date = date * p_sys->i_rate / INPUT_RATE_DEFAULT;
*/
/* Next offset */ /* Next offset */
i_cur_seq = i_index; i_cur_seq = i_index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment