]> git.sesse.net Git - ffmpeg/commit
avcodec/hnm4video: Don't return nonsense error messages
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 14 Sep 2020 15:53:58 +0000 (17:53 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 19 Sep 2020 16:46:56 +0000 (18:46 +0200)
commitcc83f36b9d7c998f772f3456326ec9c5d43c169b
treeb11f07e3cead73aee635fd55849a4114a24fb4b2
parent042af30303ead6a094c6608ca6f5419bb130ce88
avcodec/hnm4video: Don't return nonsense error messages

The HNM 4 video decoder's init function claimed that an allocation
failed if the image dimensions are wrong. This is fixed in this commit:
The dimensions are checked before the allocations are attempted.
The check whether width * height is zero is redundant as
av_image_check_size() already checks for this; it has been removed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/hnm4video.c