avformat/hnm: fix decoding of 256x256 video
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Apr 2014 23:37:38 +0000 (01:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Apr 2014 23:37:38 +0000 (01:37 +0200)
Fixes Ticket3464
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hnm.c

index 8c38102..1320fa5 100644 (file)
@@ -92,7 +92,7 @@ static int hnm_read_header(AVFormatContext *s)
 
     hnm->currentframe = 0;
 
-    if (hnm->width  < 320 || hnm->width  > 640 ||
+    if (hnm->width  < 256 || hnm->width  > 640 ||
         hnm->height < 150 || hnm->height > 480) {
         av_log(s, AV_LOG_ERROR,
                "invalid resolution: %ux%u\n", hnm->width, hnm->height);