Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Andreas Rheinhardt
Hello, 1. I agree that av_uninit should be removed; in fact, I also wanted to do so and already made some commits to do so where I consider the commit to be beneficial on its own (even without the av_uninit removal) like 348461e550f88c5e27afeafc85e7ace11fe8fae4 and its parent. 2. You fail to actu

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Nicolas George
Zhao Zhili (HE12025-04-11): > This is only check on particular compiler implementation. It works until > someone > use a different compiler and UB kicks in. No, with this suggestion there is no UB. -- Nicolas George ___ ffmpeg-devel mailing list ffm

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Zhao Zhili
> On Apr 11, 2025, at 17:32, Nicolas George wrote: > > Zhao Zhili (HE12025-04-11): >> With UB, the compiler can remove branch check and assign some random >> value to it, which cannot be detected by valgrind. >> >> For ab792634197e, the UB is there for decades and never detected by >> valgrind

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Nicolas George
Zhao Zhili (HE12025-04-11): > With UB, the compiler can remove branch check and assign some random > value to it, which cannot be detected by valgrind. > > For ab792634197e, the UB is there for decades and never detected by > valgrind, and the warning is silenced by av_uninit. You make a valid po

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Zhao Zhili
> On Apr 11, 2025, at 16:36, Nicolas George wrote: > > Zhao Zhili (HE12025-04-11): >> From: Zhao Zhili >> >> The macro is meant to suppress false uninitialized warnings. However, >> sometimes these 'false uninitialized warnings' are really undefined >> behavior, and leading to real issue like

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Zhao Zhili
> On Apr 11, 2025, at 16:36, Nicolas George wrote: > > Zhao Zhili (HE12025-04-11): >> From: Zhao Zhili >> >> The macro is meant to suppress false uninitialized warnings. However, >> sometimes these 'false uninitialized warnings' are really undefined >> behavior, and leading to real issue lik

Re: [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit

2025-04-11 Thread Nicolas George
Zhao Zhili (HE12025-04-11): > From: Zhao Zhili > > The macro is meant to suppress false uninitialized warnings. However, > sometimes these 'false uninitialized warnings' are really undefined > behavior, and leading to real issue like crash, e.g., ab792634197e. > > For false uninitialized warning