Changeset 99180b0a165bb90b5ba1d4ce8ddf3dab1efc7a12

Show
Ignore:
Timestamp:
19/01/08 19:34:05 (10 months ago)
Author:
Pavlov Konstantin <thresh@videolan.org>
git-committer:
Pavlov Konstantin <thresh@videolan.org> 1200767645 +0000
git-parent:

[a3aef4e6024deedb24387fa454d210cddf5de2c7]

git-author:
Pavlov Konstantin <thresh@videolan.org> 1200767645 +0000
Message:

Fix a segfault in mpga demuxer module.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/mpeg/mpga.c

    r7758266 r99180b0  
    336336    vlc_bool_t *pb_bool; 
    337337    int i_ret; 
     338    va_list args_save; 
     339 
     340    va_copy ( args_save, args ); 
     341    va_end ( args_save ); 
    338342 
    339343    switch( i_query ) 
     
    369373                    return VLC_EGENERIC; 
    370374 
    371                 pi64 = (int64_t *)va_arg( args, int64_t * ); 
     375                pi64 = (int64_t *)va_arg( args_save, int64_t * ); 
    372376                *pi64 = (p_sys->i_pts + p_sys->i_time_offset) / f_pos; 
    373377                return VLC_SUCCESS;