ffmpeg | branch: release/4.2 | Michael Niedermayer <mich...@niedermayer.cc> | Thu May 1 21:20:31 2025 +0200| [d553897a10dfcb5886fb7a656c5dce0c076ceff0] | committer: Michael Niedermayer
libpostproc: check minimum size Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> (cherry picked from commit 917c15435ae2e11a90de5d1a1153405bd3686fbe) Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d553897a10dfcb5886fb7a656c5dce0c076ceff0 --- libpostproc/postprocess.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 1fef8747c0..4f5901217c 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -950,6 +950,11 @@ void pp_postprocess(const uint8_t * src[3], const int srcStride[3], int minStride= FFMAX(FFABS(srcStride[0]), FFABS(dstStride[0])); int absQPStride = FFABS(QPStride); + if (width < 16 || height < 16) { + av_log(c, AV_LOG_ERROR, "Postproc is designed to filter 16x16 macroblock based formats, the minimum size is 1 macroblock\n"); + return; + } + // c->stride and c->QPStride are always positive if(c->stride < minStride || c->qpStride < absQPStride) reallocBuffers(c, width, height, _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".