[FFmpeg-cvslog] avformat/utils/av_probe_input_buffer2: fix buffer passed to ffio_rewind_with_probe_data()

Michael Niedermayer git at videolan.org
Tue Feb 4 05:34:54 CET 2014


ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 13 22:17:12 2014 +0100| [ee3ce73bfb29cfa5a0f0202b0357304af4ba8f9a] | committer: Michael Niedermayer

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

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

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee3ce73bfb29cfa5a0f0202b0357304af4ba8f9a
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index bd02da6..8e5ec48 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;
 }



More information about the ffmpeg-cvslog mailing list