lavf/apngdec: Return EOF for incomplete files.

Fixes ticket #7536.
This commit is contained in:
Carl Eugen Hoyos 2018-11-07 01:31:18 +01:00
parent 0f0f840716
commit 5ff080fdfa

View File

@ -342,6 +342,10 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
len = avio_rb32(pb);
tag = avio_rl32(pb);
if (avio_feof(pb))
return AVERROR_EOF;
switch (tag) {
case MKTAG('f', 'c', 'T', 'L'):
if (len != 26)