Commit 30f680ee authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vc1dec: fix null pointer dereference

Fixes Ticket3860
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 07bc2497
...@@ -5484,7 +5484,7 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb) ...@@ -5484,7 +5484,7 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb)
if (ret < 0) if (ret < 0)
return ret; return ret;
if (!s->current_picture.f->data[0]) { if (!s->current_picture.f || !s->current_picture.f->data[0]) {
av_log(avctx, AV_LOG_ERROR, "Got no sprites\n"); av_log(avctx, AV_LOG_ERROR, "Got no sprites\n");
return -1; return -1;
} }
......
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