OSDN Git Service

avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()
[android-x86/external-ffmpeg.git] / libavformat / utils.c
index ef688a5..fd5c0dd 100644 (file)
@@ -408,7 +408,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;
 }