OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avformat/utils/av_probe_input_buffer2: Fix pd.buf_size
[android-x86/external-ffmpeg.git]
/
libavformat
/
utils.c
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
bcea353
..
8854d5f
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-387,7
+387,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);