Module: libav
Branch: release/11
Commit: 93014c871c808428ff3a6248dd7835c4b49195ae

Author:    Sean McGovern <[email protected]>
Committer: Sean McGovern <[email protected]>
Date:      Sat Apr 22 19:16:34 2017 -0400

vc1dec: raise an error if sprite picture data is missing

Bug-Id: 1013
CC: [email protected]
(cherry picked from commit 2e1ab6a67dd5d9a30558d008aa6e541c68d76221)

Signed-off-by: Sean McGovern <[email protected]>

---

 libavcodec/vc1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 70ed3fb..531e3ef 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5471,7 +5471,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;
     }

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to