PR #25576 opened by Zhao Zhili (quink) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25576 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25576.patch
>From ce499a0adcb159f59c8d8d7980341a34d8c3b721 Mon Sep 17 00:00:00 2001 From: Zhao Zhili <[email protected]> Date: Mon, 13 Jul 2026 14:59:46 +0800 Subject: [PATCH] avcodec/audiotoolboxenc: drop shadowed ret in ffat_encode --- libavcodec/audiotoolboxenc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c index 1aa2ca317b5..f588751f621 100644 --- a/libavcodec/audiotoolboxenc.c +++ b/libavcodec/audiotoolboxenc.c @@ -571,10 +571,10 @@ static int ffat_encode(AVCodecContext *avctx, AVPacket *avpkt, if ((!ret || ret == 1) && *got_packet_ptr) { avpkt->size = out_buffers.mBuffers[0].mDataByteSize; - int ret = ff_af_queue_remove(&at->afq, out_pkt_desc.mVariableFramesInPacket ? - out_pkt_desc.mVariableFramesInPacket : - avctx->frame_size, - avpkt); + ret = ff_af_queue_remove(&at->afq, out_pkt_desc.mVariableFramesInPacket ? + out_pkt_desc.mVariableFramesInPacket : + avctx->frame_size, + avpkt); if (ret < 0) return ret; avpkt->flags |= AV_PKT_FLAG_KEY; -- 2.54.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
