Commit 6a206482 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils/av_probe_input_buffer2: Fix pd.buf_size

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cdce0e8a
...@@ -389,7 +389,8 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt, ...@@ -389,7 +389,8 @@ int av_probe_input_buffer2(AVIOContext *pb, AVInputFormat **fmt,
score = 0; score = 0;
ret = 0; /* error was end of file, nothing read */ 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]; pd.buf = &buf[offset];
memset(pd.buf + pd.buf_size, 0, AVPROBE_PADDING_SIZE); memset(pd.buf + pd.buf_size, 0, AVPROBE_PADDING_SIZE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment