diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-21 23:40:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-22 03:02:47 +0200 |
commit | e0faad837cd5047a1310cefa0cf163d8caa865e7 (patch) | |
tree | be33538f7ddca848f4ea2cdd96676ece55d27b5c /libavformat/flvdec.c | |
parent | 3f380b9b40f84f04cbaec290f98da4a0ab2bafee (diff) | |
download | ffmpeg-e0faad837cd5047a1310cefa0cf163d8caa865e7.tar.gz |
avformat/flvdec: Do not check last size if it could not be read due to EOF
Fixes part of Ticket5648
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 25dfba55ae..2bf1e059e1 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1141,6 +1141,7 @@ retry_duration: leave: last = avio_rb32(s->pb); if (last != orig_size + 11 && last != orig_size + 10 && + !avio_feof(s->pb) && (last != orig_size || !last) && last != flv->sum_flv_tag_size && !flv->broken_sizes) { av_log(s, AV_LOG_ERROR, "Packet mismatch %d %d %d\n", last, orig_size + 11, flv->sum_flv_tag_size); |