]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bintext.c
avformat: Remove deprecated av_demuxer_open()
[ffmpeg] / libavcodec / bintext.c
index 49b75c9e271ea8140d3f27fea763e248aa54c8b6..1aeed21f516746e7dc1aed76d21a31f25faecf04 100644 (file)
@@ -63,6 +63,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
             av_log(avctx, AV_LOG_ERROR, "not enough extradata\n");
             return AVERROR_INVALIDDATA;
         }
+        if (!s->font_height) {
+            av_log(avctx, AV_LOG_ERROR, "invalid font height\n");
+            return AVERROR_INVALIDDATA;
+        }
     } else {
         s->font_height = 8;
         s->flags = 0;