]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wv.c
10l: WavPack demuxer forgot to seek back to initial position after block
[ffmpeg] / libavformat / wv.c
index abc46fad1b956b87a4437263e078ec33acfaaad4..9809b37a15c41aff74b057575fa8efab8ed0c6f7 100644 (file)
@@ -125,6 +125,7 @@ static int wv_read_block_header(AVFormatContext *ctx, ByteIOContext *pb)
             av_log(ctx, AV_LOG_ERROR, "Cannot determine custom sampling rate\n");
             return -1;
         }
+        url_fseek(pb, block_end - wc->blksize + 24, SEEK_SET);
     }
     if(!wc->bpp) wc->bpp = bpp;
     if(!wc->chan) wc->chan = chan;