# HG changeset patch # User diego # Date 1177459407 0 # Node ID 7b313a20939ff2f5a9df9024baaca43d01db6272 # Parent 6a40ec31cfa71f9598bea0415a948c55604a4283 Declarations and code should not be mixed. diff -r 6a40ec31cfa7 -r 7b313a20939f libmpdemux/asfheader.c --- a/libmpdemux/asfheader.c Wed Apr 25 00:02:23 2007 +0000 +++ b/libmpdemux/asfheader.c Wed Apr 25 00:03:27 2007 +0000 @@ -460,10 +460,11 @@ break; } case ASF_GUID_PREFIX_video_stream: { + unsigned int len; + float asp_ratio; sh_video_t* sh_video=new_sh_video(demuxer,streamh->stream_no & 0x7F); mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_VideoID, "asfheader", streamh->stream_no & 0x7F); - unsigned int len=streamh->type_size-(4+4+1+2); - float asp_ratio; + len=streamh->type_size-(4+4+1+2); ++video_streams; // sh_video->bih=malloc(chunksize); memset(sh_video->bih,0,chunksize); sh_video->bih=calloc((lentrack_db); mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_VideoID, "mov", priv->track_db); - int depth; sh->format=trak->fourcc; // crude video delay from editlist0 hack ::atm diff -r 6a40ec31cfa7 -r 7b313a20939f libmpdemux/demux_real.c --- a/libmpdemux/demux_real.c Wed Apr 25 00:02:23 2007 +0000 +++ b/libmpdemux/demux_real.c Wed Apr 25 00:03:27 2007 +0000 @@ -1271,7 +1271,6 @@ } else { /* audio header */ sh_audio_t *sh = new_sh_audio(demuxer, stream_id); - mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "real", stream_id); char buf[128]; /* for codec name */ int frame_size; int sub_packet_size; @@ -1283,7 +1282,7 @@ int i; char *buft; int hdr_size; - + mp_msg(MSGT_DEMUX, MSGL_INFO, MSGTR_AudioID, "real", stream_id); mp_msg(MSGT_DEMUX,MSGL_V,"Found audio stream!\n"); version = stream_read_word(demuxer->stream); mp_msg(MSGT_DEMUX,MSGL_V,"version: %d\n", version);