diff --git a/libavformat/utils.c b/libavformat/utils.c index bd02da6d41..8e5ec48154 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -503,7 +503,7 @@ int av_probe_input_buffer(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; }