Browse code

avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 05886c9d4edddb07a4cdc6afee8b30cd9c80b4db)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/01/14 06:17:12
Showing 1 changed files
... ...
@@ -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
 }