Mercurial > mplayer.hg
diff libmpdemux/asfheader.c @ 23089:7b313a20939f
Declarations and code should not be mixed.
author | diego |
---|---|
date | Wed, 25 Apr 2007 00:03:27 +0000 |
parents | 74efb0fa8a0b |
children | cc01eab9f3a9 |
line wrap: on
line diff
--- 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((len<sizeof(BITMAPINFOHEADER))?sizeof(BITMAPINFOHEADER):len,1);