From 0d32307dd2fac026a72f3a0dcb017693adac9cb0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 6 Nov 2009 18:25:45 +0000 Subject: [PATCH] 10l: WavPack demuxer forgot to seek back to initial position after block contents parsing (for custom sampling rate). Originally committed as revision 20468 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/wv.c b/libavformat/wv.c index abc46fad1b..9809b37a15 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -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;