Commit 61ead2d3 authored by Laurent Aimar's avatar Laurent Aimar

Revert "fix overriden variables."

This reverts commit 0bed6fc3.

It is broken (at least for ps).
parent dd2c4d44
...@@ -559,6 +559,8 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt, ...@@ -559,6 +559,8 @@ static inline int ps_psm_fill( ps_psm_t *p_psm, block_t *p_pkt,
es.i_descriptor = i_info_length; es.i_descriptor = i_info_length;
if( i_info_length > 0 ) if( i_info_length > 0 )
{ {
int i = 0;
es.p_descriptor = malloc( i_info_length ); es.p_descriptor = malloc( i_info_length );
if( es.p_descriptor ) if( es.p_descriptor )
{ {
......
...@@ -472,6 +472,7 @@ static int ParseVobSubIDX( demux_t *p_demux ) ...@@ -472,6 +472,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
text_t *txt = &p_sys->txt; text_t *txt = &p_sys->txt;
char *line; char *line;
vobsub_track_t *current_tk = NULL;
for( ;; ) for( ;; )
{ {
...@@ -548,7 +549,7 @@ static int ParseVobSubIDX( demux_t *p_demux ) ...@@ -548,7 +549,7 @@ static int ParseVobSubIDX( demux_t *p_demux )
p_sys->track = realloc( p_sys->track, sizeof( vobsub_track_t ) * (p_sys->i_tracks + 1 ) ); p_sys->track = realloc( p_sys->track, sizeof( vobsub_track_t ) * (p_sys->i_tracks + 1 ) );
/* Init the track */ /* Init the track */
vobsub_track_t *current_tk = &p_sys->track[p_sys->i_tracks - 1]; current_tk = &p_sys->track[p_sys->i_tracks - 1];
memset( current_tk, 0, sizeof( vobsub_track_t ) ); memset( current_tk, 0, sizeof( vobsub_track_t ) );
current_tk->i_current_subtitle = 0; current_tk->i_current_subtitle = 0;
current_tk->i_subtitles = 0; current_tk->i_subtitles = 0;
......
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