This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/7.1 in repository ffmpeg.
commit 4ef4474d65d7d5fde0805e6e0848a9a03ab97066 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Sun Nov 2 15:29:59 2025 +0100 Commit: James Almer <[email protected]> CommitDate: Mon Jan 12 20:52:18 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 d8d3bd4d11..4f98945bcf 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -2084,9 +2084,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; + } } #if FF_API_DROPCHANGED _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
