* ...
* IDAT
*/
-static int apng_probe(AVProbeData *p)
+static int apng_probe(const AVProbeData *p)
{
GetByteContext gb;
int state = 0;
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)