You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/vc1dec: fix null pointer dereference
Fixes Ticket3860 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user