changeset 11886:0d60e54ce395

1000000000l reported by Steven Schultz (thanks!) when the hell was this c++ crap added? why wasn't it noticed? do all the competent developers --disable-real because we don't watch crappy low-quality files?
author rfelker
date Fri, 30 Jan 2004 03:44:00 +0000
parents 9f37fa68d56a
children b09020364bfb
files libmpdemux/demux_real.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Fri Jan 30 01:41:45 2004 +0000
+++ b/libmpdemux/demux_real.c	Fri Jan 30 03:44:00 2004 +0000
@@ -515,6 +515,7 @@
     int flags;
     int version;
     int reserved;
+    demux_packet_t *dp;
 
   while(1){
 
@@ -601,7 +602,7 @@
 		free(sub_packet_lengths);
 		return 1;
 	    }
-            demux_packet_t *dp = new_demux_packet(len);
+            dp = new_demux_packet(len);
 	    stream_read(demuxer->stream, dp->buffer, len);
 #ifdef CRACK_MATRIX
 	    mp_msg(MSGT_DEMUX, MSGL_V,"*** audio block len=%d\n",len);