lavf/apngdec: Return EOF for incomplete files.

Fixes ticket #7536.
pull/300/head
Carl Eugen Hoyos 6 years ago
parent 0f0f840716
commit 5ff080fdfa
  1. 4
      libavformat/apngdec.c

@ -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)

Loading…
Cancel
Save