This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavf/apngdec: Return EOF for incomplete files.
Fixes ticket
#7536
.
tags/n4.2
Carl Eugen Hoyos
6 years ago
parent
0f0f840716
commit
5ff080fdfa
1 changed files
with
4 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
libavformat/apngdec.c
+ 4
- 0
libavformat/apngdec.c
View File
@@ -342,6 +342,10 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
len = avio_rb32(pb);
len = avio_rb32(pb);
tag = avio_rl32(pb);
tag = avio_rl32(pb);
if (avio_feof(pb))
return AVERROR_EOF;
switch (tag) {
switch (tag) {
case MKTAG('f', 'c', 'T', 'L'):
case MKTAG('f', 'c', 'T', 'L'):
if (len != 26)
if (len != 26)
Write
Preview
Loading…
Cancel
Save