[FFmpeg-devel] [PATCH 01/77] avcodec/mpegvideo(_enc)?: Mark init, close functions as, av_cold
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat Mar 22 15:16:55 EET 2025
Michael Niedermayer:
> On Wed, Mar 19, 2025 at 10:18:38PM +0100, Andreas Rheinhardt wrote:
>> 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
>
> tested the branch on mips:
>
> make -k
> CC libavcodec/mpegvideo_unquantize.o
> src/libavcodec/mpegvideo_unquantize.c: In function ‘ff_mpv_unquantize_init’:
> src/libavcodec/mpegvideo_unquantize.c:272:34: error: ‘s’ is a pointer; did you mean to use ‘->’?
> ff_mpv_unquantize_init_mips(s. avctx, q_scale_type);
> ^
> ->
> src/libavcodec/mpegvideo_unquantize.c:272:43: warning: passing argument 2 of ‘ff_mpv_unquantize_init_mips’ makes pointer from integer without a cast [-Wint-conversion]
> ff_mpv_unquantize_init_mips(s. avctx, q_scale_type);
> ^~~~~~~~~~~~
> In file included from src/libavcodec/mpegvideo_unquantize.c:34:0:
> src/libavcodec/mpegvideo_unquantize.h:60:6: note: expected ‘AVCodecContext * {aka struct AVCodecContext *}’ but argument is of type ‘int’
> void ff_mpv_unquantize_init_mips(MPVUnquantDSPContext *s, AVCodecContext *avctx,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> src/libavcodec/mpegvideo_unquantize.c:272:5: error: too few arguments to function ‘ff_mpv_unquantize_init_mips’
> ff_mpv_unquantize_init_mips(s. avctx, q_scale_type);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from src/libavcodec/mpegvideo_unquantize.c:34:0:
> src/libavcodec/mpegvideo_unquantize.h:60:6: note: declared here
> void ff_mpv_unquantize_init_mips(MPVUnquantDSPContext *s, AVCodecContext *avctx,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> make: *** [src/ffbuild/common.mak:81: libavcodec/mpegvideo_unquantize.o] Error 1
> make: Target 'all' not remade because of errors.
>
> [...]
Thanks. I fixed this as well as a bug in the ppc/altivec unquantize
functions and force pushed my branch. Please replace the last two
patches with the ones attached here (or just look at the github branch).
- Andreas
PS: Both mips as well as arm (neon) always use the inter scantable. This
works because the derived raster_end for inter is always >= the
raster_end for intra. I didn't fix MIPS, because I can't seem to compile
MMI; and I didn't change ARM, because it would entail tinkering with
external assembly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0076-avcodec-mpegvideo-Move-unquantize-functions-into-a-f.patch
Type: text/x-patch
Size: 22498 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0077-avcodec-ppc-mpegvideo_altivec-Use-correct-inter-scan.patch
Type: text/x-patch
Size: 1385 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0078-avcodec-ppc-mpegvideo_altivec-Set-unquantize-functio.patch
Type: text/x-patch
Size: 1422 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0079-avcodec-ppc-mpegvideo_altivec-Don-t-process-unnecess.patch
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0080-avcodec-ppc-mpegvideo_altivec-Don-t-process-coeffs-a.patch
Type: text/x-patch
Size: 2842 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0081-avcodec-mpegvideo-Only-keep-the-actually-used-unquan.patch
Type: text/x-patch
Size: 20352 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250322/13e4a06e/attachment-0005.bin>
More information about the ffmpeg-devel
mailing list