[Mplayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.9,1.10
Moritz Bunkus CVS
mosu at mplayerhq.hu
Mon Sep 8 12:08:18 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv603
Modified Files:
demux_ts.c
Log Message:
Fix a gcc 3.x crash when compiling demux_ts.c with -g -O4 (or -O3). Patch by Arpi.
Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demux_ts.c 31 Aug 2003 18:51:05 -0000 1.9
+++ demux_ts.c 8 Sep 2003 10:07:52 -0000 1.10
@@ -180,7 +180,7 @@
int ts_check_file(demuxer_t * demuxer)
{
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;
int cc[NB_PID_MAX], last_cc[NB_PID_MAX], pid, cc_ok, c, good, bad;
uint8_t size = 0;
More information about the MPlayer-cvslog
mailing list