]> git.sesse.net Git - ffmpeg/commit
avcodec: Add missing FF_API define for libavcodec pix fmt API
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 26 Feb 2021 06:38:33 +0000 (07:38 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 26 Feb 2021 17:29:45 +0000 (18:29 +0100)
commit169259d9a381a3c2132672da5c5f250fa194fb4d
tree72a469532d9498280fc8a54defff35f7ac01b478
parent5ad0eb936c5de04d731c5e2033bc5639be8057a7
avcodec: Add missing FF_API define for libavcodec pix fmt API

avcodec_find_best_pix_fmt2 has been deprecated and replaced by
avcodec_find_best_pix_fmt_of_2 in 2a54ae9df8cbc1717b3929222ac75f384e2ff240.
avcodec_find_best_pix_fmt_of_2 and avcodec_get_pix_fmt_loss meanwhile
were deprecated in 617e866e25b72fa5d9f9d6bbcbd7e4bd69e63a54 when these
functions were de facto moved to libavutil; this has been mentioned in
APIchanges in f7a1c5e4d2294a8970ede7f6deb2fe0a64e202a5. Yet the
attribute_deprecated was never set for the latter two functions and they
were not wrapped in an FF_API define. This commit does this.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/avcodec.h
libavcodec/imgconvert.c
libavcodec/version.h