[FFmpeg-cvslog] avformat/utils/av_probe_input_buffer2: Fix pd.buf_size
Michael Niedermayer
git at videolan.org
Mon Jan 13 22:35:07 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 13 22:14:02 2014 +0100| [6a2064820b52568c05a9ec8f418f18840e7c43cc] | committer: Michael Niedermayer
avformat/utils/av_probe_input_buffer2: Fix pd.buf_size
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a2064820b52568c05a9ec8f418f18840e7c43cc
---
libavformat/utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ad3ab51..b7a569c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -389,7 +389,8 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
score = 0;
ret = 0; /* error was end of file, nothing read */
}
- pd.buf_size = buf_offset += ret;
+ buf_offset += ret;
+ pd.buf_size = buf_offset - offset;
pd.buf = &buf[offset];
memset(pd.buf + pd.buf_size, 0, AVPROBE_PADDING_SIZE);
More information about the ffmpeg-cvslog
mailing list