changeset 5349:d2cdd13aacff libavformat

Initialize block_parsed before reading first block header in WavPack demuxer, it will be useful later.
author kostya
date Thu, 05 Nov 2009 08:10:50 +0000
parents b14cad0786eb
children e5805e11f596
files wv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wv.c	Thu Nov 05 07:32:50 2009 +0000
+++ b/wv.c	Thu Nov 05 08:10:50 2009 +0000
@@ -132,10 +132,10 @@
     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)