Commit 590fffe6 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/gifdec: Check ffio_ensure_seekback()

Fixes Coverity issue #1598400.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent b47116be
......@@ -85,7 +85,10 @@ static int gif_probe(const AVProbeData *p)
static int resync(AVIOContext *pb)
{
ffio_ensure_seekback(pb, 13);
int ret = ffio_ensure_seekback(pb, 13);
if (ret < 0)
return ret;
for (int i = 0; i < 6; i++) {
int b = avio_r8(pb);
if (b != gif87a_sig[i] && b != gif89a_sig[i])
......
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