This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 02e30de0432aa3f988bfd2e66d12424fc9d7926f Author: Andreas Rheinhardt <[email protected]> AuthorDate: Sun Nov 2 15:29:59 2025 +0100 Commit: James Almer <[email protected]> CommitDate: Sun Jan 11 20:31:58 2026 -0300 avcodec/decode: Don't allocate LCEVC context for non-video Signed-off-by: Andreas Rheinhardt <[email protected]> (cherry picked from commit 182b9c7a4a7117371d51caa917f26162db53cc56) --- libavcodec/decode.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 730d4f90fe..2178931758 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -1995,9 +1995,11 @@ int ff_decode_preinit(AVCodecContext *avctx) return ret; if (!(avctx->export_side_data & AV_CODEC_EXPORT_DATA_ENHANCEMENTS)) { - ret = ff_lcevc_alloc(&dc->lcevc); - if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) - return ret; + if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) { + ret = ff_lcevc_alloc(&dc->lcevc); + if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) + return ret; + } } return 0; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
