Skip to content
Snippets Groups Projects
Commit 2e1ab6a6 authored by Sean McGovern's avatar Sean McGovern
Browse files

vc1dec: raise an error if sprite picture data is missing

Bug-Id: 1013
CC: libav-stable@libav.org
parent ecc5c4db
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment