1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

vc1dec: raise an error if sprite picture data is missing

Bug-Id: 1013
CC: libav-stable@libav.org
This commit is contained in:
Sean McGovern 2017-04-22 19:16:34 -04:00
parent ecc5c4db2d
commit 2e1ab6a67d

View File

@ -270,7 +270,7 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb)
vc1_parse_sprites(v, gb, &sd);
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;
}