fix(encoder): read pix_fmts from AVCodec->pix_fmts for old libavformat

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2024-11-10 00:00:00 +00:00
parent e393910f21
commit 4c919de6ba
2 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ extern "C" {
#include <libavformat/avformat.h>
}
#define CALC_FFMPEG_VERSION(a, b, c) (a << 16 | b << 8 | c)
int64_t get_video_frame_count(AVFormatContext *ifmt_ctx, int in_vstream_idx);
enum AVPixelFormat