Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit
@ 2025-04-11  7:55 Zhao Zhili
  2025-04-11  8:36 ` Nicolas George
  0 siblings, 1 reply; 8+ messages in thread
From: Zhao Zhili @ 2025-04-11  7:55 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Zhao Zhili

From: Zhao Zhili <zhilizhao@tencent.com>

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 warnings, it can be silenced by initialization,
and compiler can easily optimize away unnecessary initializations.

av_uninit shouldn't be used in any case.

Zhao Zhili (22):
  avfilter/af_aecho: Remove use of av_uninit
  avfilter/af_compand: Remove use of av_uninit
  avfilter/vsrc_mandelbrot: Remove use of av_uninit
  avformat/electronicarts: Remove use of av_uninit
  swscale/yuv2rgb: Remove use of av_uninit
  avcodec/ac3enc: Remove use of av_uninit
  avcodec/bfi: Remove use of av_uninit
  avcodec/dvdsubenc: Remove use of av_uninit
  avcodec/eamad: Remove use of av_uninit
  avcodec/ffv1enc: Remove use of av_uninit
  avcodec/flacdec: Remove use of av_uninit
  avcodec/lpc: Remove use of av_uninit
  avcodec/mpeg4videodec: Remove use av_uninit
  avcodec/qtrleenc: Remove use of av_uninit
  avcodec/ra144enc: Remove use av_uninit
  avcodec/vp8: Remove use of av_uninit
  avcodec/wmavoice: Remove use of av_uninit
  avformat/flvdec: Remove use of av_uninit
  avformat/srtp: Remove use of av_uninit
  avformat/wavdec: Remove use of av_uninit
  avformat/tests/seek: Remove use of av_uninit
  avutil/attributes: Make av_uninit do nothing

 libavcodec/ac3enc.c           |  5 +++--
 libavcodec/ac3enc_template.c  | 16 ++++++++--------
 libavcodec/bfi.c              |  2 +-
 libavcodec/dvdsubenc.c        |  2 +-
 libavcodec/eamad.c            |  2 +-
 libavcodec/ffv1enc.c          |  4 ++--
 libavcodec/ffv1enc_template.c |  4 ++--
 libavcodec/flacdec.c          |  2 +-
 libavcodec/lpc.c              |  2 +-
 libavcodec/mpeg4videodec.c    |  2 +-
 libavcodec/qtrleenc.c         |  2 +-
 libavcodec/ra144enc.c         |  4 ++--
 libavcodec/vp8.c              |  2 +-
 libavcodec/wmavoice.c         |  4 ++--
 libavfilter/af_aecho.c        |  2 +-
 libavfilter/af_compand.c      |  2 +-
 libavfilter/vsrc_mandelbrot.c |  2 +-
 libavformat/electronicarts.c  |  2 +-
 libavformat/flvdec.c          |  4 ++--
 libavformat/srtp.c            |  4 ++--
 libavformat/tests/seek.c      |  2 +-
 libavformat/wavdec.c          |  2 +-
 libavutil/attributes.h        |  9 ++++-----
 libswscale/yuv2rgb.c          |  2 +-
 24 files changed, 42 insertions(+), 42 deletions(-)

-- 
2.46.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-11 11:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-11  7:55 [FFmpeg-devel] [PATCH 00/22] Deprecate av_uninit Zhao Zhili
2025-04-11  8:36 ` Nicolas George
2025-04-11  9:00   ` Zhao Zhili
2025-04-11  9:32     ` Nicolas George
2025-04-11  9:36       ` Zhao Zhili
2025-04-11  9:52         ` Nicolas George
2025-04-11  9:19   ` Zhao Zhili
2025-04-11 11:01     ` Andreas Rheinhardt

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git