mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
avcodec/vc1dec: fix null pointer dereference
Fixes Ticket3860 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
07bc24973b
commit
30f680ee0a
@ -5484,7 +5484,7 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb)
|
||||
if (ret < 0)
|
||||
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");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user