diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-25 02:17:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-25 02:18:31 +0200 |
commit | 30f680ee0a2707af9a649a0aa3fd951d18a25c05 (patch) | |
tree | 049edec59a8ca1fa34385e7ec86e5f5c983e7cb6 /libavcodec/vc1dec.c | |
parent | 07bc24973b8cf97dc52e69de236d06126740c55d (diff) | |
download | ffmpeg-30f680ee0a2707af9a649a0aa3fd951d18a25c05.tar.gz |
avcodec/vc1dec: fix null pointer dereference
Fixes Ticket3860
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index bcfa4dfc0a..a25c3d955c 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -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; } |