]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bintext.c
avcodec/gif: fix issues with transparent crop
[ffmpeg] / libavcodec / bintext.c
index d85f2c2dd443504d8d51f32ec36e59b5f622c4a0..49b75c9e271ea8140d3f27fea763e248aa54c8b6 100644 (file)
@@ -93,8 +93,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
             break;
         }
     }
-    if (avctx->width < FONT_WIDTH || avctx->height < s->font_height)
+    if (avctx->width < FONT_WIDTH || avctx->height < s->font_height) {
+        av_log(avctx, AV_LOG_ERROR, "Resolution too small for font.\n");
         return AVERROR_INVALIDDATA;
+    }
 
     return 0;
 }