Commit 5ff080fd authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/apngdec: Return EOF for incomplete files.

Fixes ticket #7536.
parent 0f0f8407
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment