---
 libavcodec/cljr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
index a5ee738..999c2d8 100644
--- a/libavcodec/cljr.c
+++ b/libavcodec/cljr.c
@@ -57,7 +57,7 @@ static int decode_frame(AVCodecContext *avctx,
     if (p->data[0])
         avctx->release_buffer(avctx, p);
 
-    if (buf_size / avctx->height < avctx->width) {
+    if (buf_size < avctx->height * avctx->width) {
         av_log(avctx, AV_LOG_ERROR,
                "Resolution larger than buffer size. Invalid header?\n");
         return AVERROR_INVALIDDATA;
-- 
1.7.7

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to