[FFmpeg-devel] [PATCH 1/5] fftools/ffmpeg_filter: Don't use deprecated function
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Fri Feb 26 15:18:02 EET 2021
avcodec_find_best_pix_fmt_of_2 has been moved to libavutil in
617e866e25b72fa5d9f9d6bbcbd7e4bd69e63a54.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
fftools/ffmpeg_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 9218394f4a..4ab769c07b 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -74,7 +74,7 @@ static enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *enc_ctx
p = get_compliance_unofficial_pix_fmts(enc_ctx->codec_id, p);
}
for (; *p != AV_PIX_FMT_NONE; p++) {
- best= avcodec_find_best_pix_fmt_of_2(best, *p, target, has_alpha, NULL);
+ best = av_find_best_pix_fmt_of_2(best, *p, target, has_alpha, NULL);
if (*p == target)
break;
}
--
2.27.0
More information about the ffmpeg-devel
mailing list