aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 01:37:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-16 01:37:38 +0200
commit79d82a65744b94406ac06677d42373879529926a (patch)
tree622f31e74daad2f7a46395f6b0f07781c5f89616 /libavformat
parentbdc812ab9edb31960d5a756aa59f6d612609f2cf (diff)
downloadffmpeg-79d82a65744b94406ac06677d42373879529926a.tar.gz
avformat/hnm: fix decoding of 256x256 video
Fixes Ticket3464 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hnm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hnm.c b/libavformat/hnm.c
index 8c381021c5..1320fa5206 100644
--- a/libavformat/hnm.c
+++ b/libavformat/hnm.c
@@ -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);