[FFmpeg-devel] [PATCH 3/3] avcodec/ac3dsp: make len a size_t in float_to_fixed24

Michael Niedermayer michael at niedermayer.cc
Sat Nov 25 01:49:19 EET 2023


On Fri, Nov 24, 2023 at 06:03:29PM -0300, James Almer wrote:
> On 11/24/2023 6:01 PM, Michael Niedermayer wrote:
> > On Wed, Nov 22, 2023 at 04:49:13PM -0300, James Almer wrote:
> > > Should simplify asm implementations, and prevent UB on at least win64.
> > > 
> > > Signed-off-by: James Almer <jamrial at gmail.com>
> > > ---
> > >   libavcodec/ac3dsp.c              | 2 +-
> > >   libavcodec/ac3dsp.h              | 2 +-
> > >   libavcodec/arm/ac3dsp_init_arm.c | 2 +-
> > >   libavcodec/mips/ac3dsp_mips.c    | 2 +-
> > >   libavcodec/x86/ac3dsp_init.c     | 4 ++--
> > >   5 files changed, 6 insertions(+), 6 deletions(-)
> > 
> > In file included from src/libavcodec/mips/ac3dsp_mips.c:57:0:
> > src/libavcodec/ac3dsp.h:56:62: error: unknown type name ‘size_t’; did you mean ‘__ssize_t’?
> >       void (*float_to_fixed24)(int32_t *dst, const float *src, size_t len);
> >                                                                ^~~~~~
> >                                                                __ssize_t
> > src/ffbuild/common.mak:81: recipe for target 'libavcodec/mips/ac3dsp_mips.o' failed
> > make: *** [libavcodec/mips/ac3dsp_mips.o] Error 1
> > make: *** Waiting for unfinished jobs....
> > mips FAIL
> 
> Do you know where is size_t defined for this target? stddef.h?

stddef.h fixes it, yes!

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20231125/22e20961/attachment.sig>


More information about the ffmpeg-devel mailing list