summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asfheader.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-25 00:03:27 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-25 00:03:27 +0000
commit56c96cec50f96a59f01df63f57996519c281cfeb (patch)
tree4a27f4a0389fb577bb69ecfe3ac7186dde31c217 /libmpdemux/asfheader.c
parent62cf4b0c602468adee37fcc0bd204ace694c6ca6 (diff)
downloadmpv-56c96cec50f96a59f01df63f57996519c281cfeb.tar.bz2
mpv-56c96cec50f96a59f01df63f57996519c281cfeb.tar.xz
Declarations and code should not be mixed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23107 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/asfheader.c')
-rw-r--r--libmpdemux/asfheader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpdemux/asfheader.c b/libmpdemux/asfheader.c
index 1ca0453920..78f8b39a08 100644
--- a/libmpdemux/asfheader.c
+++ b/libmpdemux/asfheader.c
@@ -460,10 +460,11 @@ int read_asf_header(demuxer_t *demuxer,struct asf_priv* asf){
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);