]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/webp.c
avcodec/h264: Declare the local variable decode_chroma as const.
[ffmpeg] / libavcodec / webp.c
index 50a8da1000c8abdd601d55385004b9645e3f0dd2..a0d4d1812d94ab3f86e9507a120aff3218079f89 100644 (file)
@@ -1351,6 +1351,9 @@ static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p,
     if (ret < 0)
         return ret;
 
+    if (!*got_frame)
+        return AVERROR_INVALIDDATA;
+
     update_canvas_size(avctx, avctx->width, avctx->height);
 
     if (s->has_alpha) {