This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.0 in repository ffmpeg.
commit 83585030b6218ef4e40859cf8f7aca07ed80eb66 Author: Rainbaby <[email protected]> AuthorDate: Sat Sep 5 16:00:55 2026 +0900 Commit: Michael Niedermayer <[email protected]> CommitDate: Thu Nov 26 22:32:57 2026 +0100 avcodec/cavsdec: check decode_pic() return value A picture that failed to decode, whether from an invalid header, a missing reference, a refused feature or truncated data, was reported as consumed with no frame and no error. The error now reaches the caller. Signed-off-by: Rainbaby <[email protected]> (cherry picked from commit 72833c7fba27a9665392a908dc96526feb613538) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/cavsdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index d866924dbc..9810b9acdf 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -1316,8 +1316,9 @@ static int cavs_decode_frame(AVCodecContext *avctx, AVFrame *rframe, if (!h->got_keyframe) break; h->stc = stc; - if (decode_pic(h)) - break; + ret = decode_pic(h); + if (ret < 0) + return ret; *got_frame = 1; if (h->cur.f->pict_type != AV_PICTURE_TYPE_B) { if (h->DPB[!h->low_delay].f->data[0]) { -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
