From 05886c9d4edddb07a4cdc6afee8b30cd9c80b4db Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 13 Jan 2014 22:17:12 +0100 Subject: [PATCH] avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data() Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index e880650c41..29ec5b471e 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -415,7 +415,7 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, } /* rewind. reuse probe buffer to avoid seeking */ - ret = ffio_rewind_with_probe_data(pb, &buf, pd.buf_size); + ret = ffio_rewind_with_probe_data(pb, &buf, buf_offset); return ret < 0 ? ret : score; }