mirror of https://github.com/mpv-player/mpv
Fix a gcc 3.x crash when compiling demux_ts.c with -g -O4 (or -O3). Patch by Arpi.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10842 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a958aebdbb
commit
a024a14660
|
@ -180,7 +180,7 @@ try_fec:
|
||||||
int ts_check_file(demuxer_t * demuxer)
|
int ts_check_file(demuxer_t * demuxer)
|
||||||
{
|
{
|
||||||
const int buf_size = (TS_FEC_PACKET_SIZE * NUM_CONSECUTIVE_TS_PACKETS);
|
const int buf_size = (TS_FEC_PACKET_SIZE * NUM_CONSECUTIVE_TS_PACKETS);
|
||||||
unsigned char buf[buf_size], done = 0, *ptr;
|
unsigned char buf[TS_FEC_PACKET_SIZE * NUM_CONSECUTIVE_TS_PACKETS], done = 0, *ptr;
|
||||||
uint32_t _read, i, count = 0, is_ts;
|
uint32_t _read, i, count = 0, is_ts;
|
||||||
int cc[NB_PID_MAX], last_cc[NB_PID_MAX], pid, cc_ok, c, good, bad;
|
int cc[NB_PID_MAX], last_cc[NB_PID_MAX], pid, cc_ok, c, good, bad;
|
||||||
uint8_t size = 0;
|
uint8_t size = 0;
|
||||||
|
|
Loading…
Reference in New Issue