Fix missing FFmpeg include needed for av_get_pix_fmt_name

This commit is contained in:
Alexander Smorkalov 2022-12-14 13:09:37 +03:00
parent 4203c903f8
commit 189e1b228d

View File

@ -114,6 +114,8 @@ extern "C" {
#include <libavcodec/bsf.h>
#endif
#include <libavutil/pixdesc.h>
// https://github.com/FFmpeg/FFmpeg/blob/b6af56c034759b81985f8ea094e41cbd5f7fecfb/doc/APIchanges#L208-L210
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(59, 0, 100)
# define CV_FFMPEG_FMT_CONST const