summaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorSean McGovern <gseanmcg@gmail.com>2017-04-22 19:16:34 -0400
committerSean McGovern <gseanmcg@gmail.com>2017-04-24 18:28:55 -0400
commit2e1ab6a67dd5d9a30558d008aa6e541c68d76221 (patch)
treec006e2de7b1480814f1b6cc22903127e1f4040e9 /libavcodec/vc1dec.c
parentecc5c4db2dd3a0f328d95df89daa59f78b4b2810 (diff)
downloadffmpeg-streaming-2e1ab6a67dd5d9a30558d008aa6e541c68d76221.zip
ffmpeg-streaming-2e1ab6a67dd5d9a30558d008aa6e541c68d76221.tar.gz
vc1dec: raise an error if sprite picture data is missing
Bug-Id: 1013 CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 89b4f4b..51745c1 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -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;
}
OpenPOWER on IntegriCloud