diff mbox series

[FFmpeg-devel,2/2] lavc/ac3enc: rename variable to avoid shadowing

Message ID 20210208095321.6332-2-anton@khirnov.net
State Accepted
Commit 1c36e7c1a524cd944679b3be8a52dde85d442ada
Headers show
Series [FFmpeg-devel,1/2] lavc/mpegvideo_enc: mark default_mv_penalty as const | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov Feb. 8, 2021, 9:53 a.m. UTC
Harmless, but confusing.
---
 libavcodec/ac3enc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Feb. 8, 2021, 9:59 a.m. UTC | #1
LGTM
diff mbox series

Patch

diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index bae7405fff..a007723bf3 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -2527,8 +2527,8 @@  av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
     }
 
     if (CONFIG_EAC3_ENCODER && s->eac3) {
-        static AVOnce init_static_once = AV_ONCE_INIT;
-        ff_thread_once(&init_static_once, ff_eac3_exponent_init);
+        static AVOnce init_static_once_eac3 = AV_ONCE_INIT;
+        ff_thread_once(&init_static_once_eac3, ff_eac3_exponent_init);
         s->output_frame_header = ff_eac3_output_frame_header;
     } else
         s->output_frame_header = ac3_output_frame_header;