]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/yop.c
Merge commit '892b0be1dfbdeaf71235fb6c593286e4f5c7e4ec'
[ffmpeg] / libavcodec / yop.c
index 807e1706af9f54a464517c70137991c1ddadabaa..6315add0c9e034d0169c16121e05320a6da04400 100644 (file)
@@ -118,6 +118,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
     }
 
     s->frame = av_frame_alloc();
+    if (!s->frame)
+        return AVERROR(ENOMEM);
 
     return 0;
 }