git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4403e4
)
avformat/flvdec: Accept last size if its off by 1
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 21 Jun 2016 21:38:23 +0000
(23:38 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 22 Jun 2016 01:02:47 +0000
(
03:02
+0200)
Fixes part of Ticket5648
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
8d9e873
..
7756d0d
100644
(file)
--- a/
libavformat/flvdec.c
+++ b/
libavformat/flvdec.c
@@
-1140,7
+1140,7
@@
retry_duration:
leave:
last = avio_rb32(s->pb);
- if (last != orig_size + 11 &&
+ if (last != orig_size + 11 &&
last != orig_size + 10 &&
(last != orig_size || !last) && last != flv->sum_flv_tag_size &&
!flv->broken_sizes) {
av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d\n", last, orig_size + 11);