Diego Biurrun <[email protected]> writes: > Depending on whether the mpegaudio code is compiled in float or int mode, > some av_log invocations may require printf conversion specifiers for int > or float arguments; FF_PRIx_or_e provides the correct one. > --- > libavcodec/mpegaudio.h | 3 +++ > libavcodec/mpegaudiodec.c | 2 +- > 2 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/mpegaudio.h b/libavcodec/mpegaudio.h > index b556801..d4848b8 100644 > --- a/libavcodec/mpegaudio.h > +++ b/libavcodec/mpegaudio.h > @@ -58,14 +58,17 @@ > > #if CONFIG_FLOAT > # define INTFLOAT float > +# define FF_PRIx_or_e "e" > typedef float MPA_INT; > typedef float OUT_INT; > #elif FRAC_BITS <= 15 > # define INTFLOAT int > +# define FF_PRIx_or_e "x" > typedef int16_t MPA_INT; > typedef int16_t OUT_INT; > #else > # define INTFLOAT int > +# define FF_PRIx_or_e "x" > typedef int32_t MPA_INT; > typedef int16_t OUT_INT; > #endif
Did we not agree to leave the mpegaudio code alone until I'm done with it? -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
