[FFmpeg-cvslog] avformat/hnm: fix decoding of 256x256 video
Michael Niedermayer
git at videolan.org
Wed Apr 16 01:54:01 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 16 01:37:38 2014 +0200| [79d82a65744b94406ac06677d42373879529926a] | committer: Michael Niedermayer
avformat/hnm: fix decoding of 256x256 video
Fixes Ticket3464
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79d82a65744b94406ac06677d42373879529926a
---
libavformat/hnm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hnm.c b/libavformat/hnm.c
index 8c38102..1320fa5 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);
More information about the ffmpeg-cvslog
mailing list