From 802c0515067fa3f5a67feb56241789dfcfb1ad09 Mon Sep 17 00:00:00 2001 From: rcombs Date: Sat, 18 Dec 2021 14:35:17 -0600 Subject: [PATCH] libavcodec/videotoolboxenc: use the correct types for options These are all set by AV_OPT_TYPE_INT or AV_OPT_TYPE_BOOL; the only reason they worked before was that this is only used on little-endian. --- libavcodec/videotoolboxenc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index e33a16fab186f..a2f5aa9be91c3 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -227,14 +227,14 @@ typedef struct VTEncContext { int64_t dts_delta; int64_t profile; - int64_t level; - int64_t entropy; - int64_t realtime; - int64_t frames_before; - int64_t frames_after; - - int64_t allow_sw; - int64_t require_sw; + int level; + int entropy; + int realtime; + int frames_before; + int frames_after; + + int allow_sw; + int require_sw; double alpha_quality; bool flushing;