[FFmpeg-devel] [PATCH 2/2] tools/probetest: replace the deprecated API
Moritz Barsnick
barsnick at gmx.net
Mon Oct 28 14:37:00 EET 2019
On Sat, Oct 26, 2019 at 22:18:32 +0800, zhongli_dev at 126.com wrote:
> AVInputFormat *fmt = NULL;
> + void *fmt_opaque = NULL;
>
> - while ((fmt = av_iformat_next(fmt))) {
> + while ((fmt = av_demuxer_iterate(&fmt_opaque))) {
Doesn't this give you (new) warnings? fmt needs to be const now:
const AVInputFormat *fmt = NULL;
as far as I can tell.
icc should give you:
warning #2332: a value of type "const AVInputFormat *" cannot be assigned to an entity of type "AVInputFormat *" (dropping qualifiers)
Cheers,
Moritz
More information about the ffmpeg-devel
mailing list