summaryrefslogtreecommitdiff
path: root/libavformat/wv.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-11-05 08:10:50 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-11-05 08:10:50 +0000
commitaa926a480f2f84a87dc1fbf42d40fe23bae82ae1 (patch)
treeb5488ba44c5bcdbaa0149de33709b150375e8b53 /libavformat/wv.c
parentc2564699bf5abdd2f909c2db4ae22f73bceb0157 (diff)
Initialize block_parsed before reading first block header in WavPack demuxer,
it will be useful later. Originally committed as revision 20460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r--libavformat/wv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c
index ffb2b35c63..e5c93f5cdd 100644
--- a/libavformat/wv.c
+++ b/libavformat/wv.c
@@ -132,10 +132,10 @@ static int wv_read_header(AVFormatContext *s,
WVContext *wc = s->priv_data;
AVStream *st;
+ wc->block_parsed = 0;
if(wv_read_block_header(s, pb) < 0)
return -1;
- wc->block_parsed = 0;
/* now we are ready: build format streams */
st = av_new_stream(s, 0);
if (!st)