diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-13 22:14:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-13 22:14:02 +0100 |
commit | 6a2064820b52568c05a9ec8f418f18840e7c43cc (patch) | |
tree | d31208d9a56fbd2b988df64e1736f0617b3cd7e2 /libavformat/utils.c | |
parent | cdce0e8a506cafebe47736d891f5b645b57d14b2 (diff) | |
download | ffmpeg-6a2064820b52568c05a9ec8f418f18840e7c43cc.tar.gz |
avformat/utils/av_probe_input_buffer2: Fix pd.buf_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index ad3ab519d5..b7a569c1c3 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); |