avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Jan 2014 21:17:12 +0000 (22:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 4 Feb 2014 04:20:09 +0000 (05:20 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 05886c9d4edddb07a4cdc6afee8b30cd9c80b4db)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index bd02da6..8e5ec48 100644 (file)
@@ -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;
 }