changeset 10841:d4cf5407d7c6

Fix a gcc 3.x crash when compiling demux_ts.c with -g -O4 (or -O3). Patch by Arpi.
author mosu
date Mon, 08 Sep 2003 10:07:52 +0000
parents 10f45897d653
children 3e9bbf83bd6e
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Sun Sep 07 19:42:35 2003 +0000
+++ b/libmpdemux/demux_ts.c	Mon Sep 08 10:07:52 2003 +0000
@@ -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;