[FFmpeg-devel] [PATCH] swr: allow passing of AVFrame.data to swr_convert without, cast in C++ code

Michael Niedermayer michaelni at gmx.at
Fri Dec 5 14:15:03 CET 2014


On Fri, Dec 05, 2014 at 04:14:53PM +0800, Yu Xiaolei wrote:
> 
> ---
>  libswresample/swresample.c | 4 ++--
>  libswresample/swresample.h | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

This adds these warnings:

ibswresample/swresample.c:380:13: note: expected ‘uint8_t **’ but argument is of type ‘uint8_t * const*’
libswresample/swresample.c:693:5: warning: passing argument 2 of ‘fill_audiodata’ discards ‘const’ qualifier from pointer target type [enabled by default]

also adding const breaks API sadly so it must be delayed until
the next major version bump see:
f00e9c4b10f5ab7cd382d3019eb7bee13fcc3866 for an example on how to
do that

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

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141205/76bc5d93/attachment.asc>


More information about the ffmpeg-devel mailing list