[FFmpeg-devel] [PATCH 01/77] avcodec/mpegvideo(_enc)?: Mark init, close functions as, av_cold
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Mar 19 23:18:38 EET 2025
First part of a patchset; the second part will be sent separately
because the complete set crosses the ML thresholds ("Message body is too
big: 1731572 bytes with a limit of 1000 KB"). A complete branch can be
found here: https://github.com/mkver/FFmpeg/tree/mpvenc
- Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-mpegvideo-_enc-Mark-init-close-functions-as-.patch
Type: text/x-patch
Size: 3909 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avcodec-mpegvideoenc-Add-MPVMainEncContext.patch
Type: text/x-patch
Size: 8939 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-avcodec-mpegvideoenc-Move-tmp-bframes-to-MPVMainEncC.patch
Type: text/x-patch
Size: 16445 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-avcodec-mpegvideoenc-Move-ratecontrol-to-MPVMainEncC.patch
Type: text/x-patch
Size: 34411 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-avcodec-mpegvideo_enc-Precalculate-which-frames-to-r.patch
Type: text/x-patch
Size: 2700 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-avcodec-mpegvideo-Move-frame_skip_-fields-to-MPVMain.patch
Type: text/x-patch
Size: 8602 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-avcodec-h261enc-Make-h261_encode_init-call-ff_mpv_en.patch
Type: text/x-patch
Size: 3696 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-avcodec-mpegvideo-Don-t-initialize-yc-_dc_scale_tabl.patch
Type: text/x-patch
Size: 2838 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-avcodec-speedhqenc-Make-speedhq_encode_init-call-ff_.patch
Type: text/x-patch
Size: 4016 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-avcodec-speedhqenc-Avoid-indirection.patch
Type: text/x-patch
Size: 1821 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-avcodec-mjpegenc-Make-mjpeg_encode_init-call-ff_mpv_.patch
Type: text/x-patch
Size: 5340 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-avcodec-mjpegenc-Simplify-allocating-huffman-table.patch
Type: text/x-patch
Size: 2220 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-avcodec-mpegvideo_enc-Only-set-fcode_tab-if-unset.patch
Type: text/x-patch
Size: 1198 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-avcodec-mpeg12enc-Move-encode_init-to-the-end-of-the.patch
Type: text/x-patch
Size: 13119 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-avcodec-mpeg12enc-Merge-ff_mpeg1_encode_init-into-or.patch
Type: text/x-patch
Size: 5004 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-avcodec-mpeg12enc-Don-t-write-invalid-MPEG-1-slice-h.patch
Type: text/x-patch
Size: 3926 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-avcodec-pthread_slice-Remove-MPEG-1-height-hack.patch
Type: text/x-patch
Size: 1238 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-avcodec-pthread_slice-Return-error-on-error.patch
Type: text/x-patch
Size: 1545 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-avutil-slicethread-Remove-NULL-pointer-check-when-fr.patch
Type: text/x-patch
Size: 1248 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-avutil-slicethread-Mark-avpriv_slicethread_-create-f.patch
Type: text/x-patch
Size: 1210 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-avcodec-mpeg4videoenc-Add-Mpeg4EncContext-and-move-t.patch
Type: text/x-patch
Size: 7626 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-avcodec-mpegvideo_enc-Move-MPEG-4-specific-check-to-.patch
Type: text/x-patch
Size: 2228 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0023-avcodec-mpegvideo-Move-sequence-level-properties-to-.patch
Type: text/x-patch
Size: 17822 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0024-avcodec-mpegvideo-Move-ratecontrol-adjacent-fields-t.patch
Type: text/x-patch
Size: 15567 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-avcodec-mpegvideoenc-Disable-scenechange-threshold-o.patch
Type: text/x-patch
Size: 4563 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0026-avcodec-mpegvideo-Move-macroblock-variance-stats-to-.patch
Type: text/x-patch
Size: 5948 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0027-avcodec-mpegvideo-Move-header_bits-to-MPVMainEncCont.patch
Type: text/x-patch
Size: 5051 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0028-avcodec-speedhqenc-Move-speedhq_encode_init-down.patch
Type: text/x-patch
Size: 4100 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0029-avcodec-wmv2enc-Move-wmv2_encode_init-down.patch
Type: text/x-patch
Size: 2252 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0030-avcodec-mpegvideo_enc-Use-function-ptr-for-encode_pi.patch
Type: text/x-patch
Size: 23570 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0031-avcodec-mpegvideo-Move-fcode_tab-to-MPVMainEncContex.patch
Type: text/x-patch
Size: 8118 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0032-avcodec-speedhqenc-Remove-declaration-of-non-existen.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0031.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0033-avcodec-mjpegenc-Move-mjpeg_encode_init-down.patch
Type: text/x-patch
Size: 6714 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0032.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0034-avcodec-mpegvideo_enc-Use-func-ptr-for-encoding-macr.patch
Type: text/x-patch
Size: 18160 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0033.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0035-avcodec-mjpegenc-Reindent-after-the-previous-commit.patch
Type: text/x-patch
Size: 4993 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0034.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0036-avcodec-mpegvideo-Add-pointer-to-main-context-to-sli.patch
Type: text/x-patch
Size: 2686 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0035.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0037-avcodec-mpegvideo-Move-max_b_frames-to-MPVMainEncCon.patch
Type: text/x-patch
Size: 14009 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0036.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0038-avcodec-mpegvideo-Move-MPVPicture-arrays-to-MPVMainE.patch
Type: text/x-patch
Size: 18360 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0037.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0039-avcodec-mpegvideo-Move-vbv_delay_pos-to-MPVMainEncCo.patch
Type: text/x-patch
Size: 2848 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0038.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0040-avcodec-mpegvideoenc-Add-bit_rate-to-MPVMainEncConte.patch
Type: text/x-patch
Size: 9507 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0039.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0041-avcodec-mpeg12dec-Add-bit_rate-field-to-Mpeg1Context.patch
Type: text/x-patch
Size: 3693 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0040.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0042-avcodec-msmpeg4dec-Add-MSMPEG4DecContext.patch
Type: text/x-patch
Size: 6547 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0041.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0043-avcodec-mpegvideo-Move-bit_rate-field-to-MSMP4DecCon.patch
Type: text/x-patch
Size: 6355 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0042.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0044-avcodec-msmpeg4enc-Use-LUT-to-write-motion-vectors.patch
Type: text/x-patch
Size: 4064 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0043.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0045-avcodec-msmpeg4dec-Avoid-lookups-when-decoding-motio.patch
Type: text/x-patch
Size: 42404 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0044.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0046-avcodec-msmpeg4enc-Avoid-using-MVTable.patch
Type: text/x-patch
Size: 54656 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0045.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0047-avcodec-mpegvideo-Move-MSMPEG4-fields-to-MSMPEG4-con.patch
Type: text/x-patch
Size: 47297 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0046.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0048-avcodec-mpegvideo-Move-allocating-encoder-buffers-to.patch
Type: text/x-patch
Size: 5931 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0047.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0049-avcodec-mpegvideo-Move-encoder-only-base-arrays-to-M.patch
Type: text/x-patch
Size: 9430 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0048.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0050-avcodec-mpegvideo_enc-Don-t-allocate-B-frame-bufs-wi.patch
Type: text/x-patch
Size: 3036 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0049.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0051-avcodec-mpegvideo_enc-Reindent-after-the-previous-co.patch
Type: text/x-patch
Size: 2546 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0050.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0052-avcodec-mpegvideo_enc-Move-allocating-remaining-buff.patch
Type: text/x-patch
Size: 4288 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0051.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0053-avcodec-mpegvideo-Move-noise_reduction-to-MPVMainEnc.patch
Type: text/x-patch
Size: 5083 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0052.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0054-avcodec-mpegvideo-Support-custom-slice-context-sizes.patch
Type: text/x-patch
Size: 1973 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0053.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0055-avcodec-mpegvideo-Move-last-pic-information-to-MPVMa.patch
Type: text/x-patch
Size: 6705 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0054.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0056-avcodec-h261-ituh263-enc-Don-t-set-ptr_lastgob-unnec.patch
Type: text/x-patch
Size: 1567 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0055.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0057-avcodec-mpegvideoenc-Remove-declaration-of-inexisten.patch
Type: text/x-patch
Size: 1173 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0056.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0058-avcodec-mpegvideo_enc-Call-ff_mpv_common_init-later.patch
Type: text/x-patch
Size: 2545 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0057.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0059-avcodec-mpeg4videoenc-Move-initializations-before-ff.patch
Type: text/x-patch
Size: 3892 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0058.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0060-avcodec-mpegvideo-Move-me_pre-me_penalty_compensatio.patch
Type: text/x-patch
Size: 4171 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0059.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0061-avcodec-mpegvideo-Move-motion_est-to-MotionEstContex.patch
Type: text/x-patch
Size: 6387 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0060.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0062-avcodec-motion_est-Don-t-use-MpegEncContext.avctx.patch
Type: text/x-patch
Size: 6683 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250319/53a9c4d9/attachment-0061.bin>
More information about the ffmpeg-devel
mailing list