summaryrefslogtreecommitdiff
path: root/libavformat/wv.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-11-06 18:25:45 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-11-06 18:25:45 +0000
commit0d32307dd2fac026a72f3a0dcb017693adac9cb0 (patch)
treea7e15fed0231fdd1d6f185f8895a02314c95c7d9 /libavformat/wv.c
parent3fa70a3bc86bbd39b689ae04a8076cf285e7317f (diff)
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
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r--libavformat/wv.c1
1 files changed, 1 insertions, 0 deletions
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;