]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ulti.c
avfilter/vf_convolution: add horizontal/row mode
[ffmpeg] / libavcodec / ulti.c
index e6f43749811ccbf388dc4d9acafcbb463094fa25..9e4c088b101c71d72deee2ef8628981fc58886cd 100644 (file)
@@ -50,6 +50,8 @@ static av_cold int ulti_decode_init(AVCodecContext *avctx)
     s->width = avctx->width;
     s->height = avctx->height;
     s->blocks = (s->width / 8) * (s->height / 8);
+    if (s->blocks == 0)
+        return AVERROR_INVALIDDATA;
     avctx->pix_fmt = AV_PIX_FMT_YUV410P;
     s->ulti_codebook = ulti_codebook;