Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 05886c9d4edddb07a4cdc6afee8b30cd9c80b4db)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -408,7 +408,7 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, |
408 | 408 |
} |
409 | 409 |
|
410 | 410 |
/* rewind. reuse probe buffer to avoid seeking */ |
411 |
- ret = ffio_rewind_with_probe_data(pb, &buf, pd.buf_size); |
|
411 |
+ ret = ffio_rewind_with_probe_data(pb, &buf, buf_offset); |
|
412 | 412 |
|
413 | 413 |
return ret < 0 ? ret : score; |
414 | 414 |
} |