#8030: IMGUTILS, failure handling big images
-------------------------------------+----------------------------------
Reporter: gdgsdg123 | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avutil
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Changes (by cehoyos):
* reproduced: 0 => 1
Comment:
While the following may be a good idea, it does not help with this issue
as the pix_fmt is not yet known when `av_image_get_buffer_size()` is
called.
{{{
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index c733cb5cf5..f308422636 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -438,7 +438,7 @@ int av_image_get_buffer_size(enum AVPixelFormat
pix_fmt,
if (!desc)
return AVERROR(EINVAL);
- ret = av_image_check_size(width, height, 0, NULL);
+ ret = av_image_check_size2(width, height, INT64_MAX, pix_fmt, 0,
NULL);
if (ret < 0)
return ret;
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8030#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".