aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-19 13:33:28 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-20 10:34:48 +0100
commit08bebeb1bed3feee99d30cd6066d3466291dc8ed (patch)
tree89bcdd9a892d3a837b1a09d3ab0bde48557c4049 /libavcodec/videotoolboxenc.c
parenta8bc79c3fd96a8287e241e6913ad5cf4d4838f5c (diff)
downloadffmpeg-08bebeb1bed3feee99d30cd6066d3466291dc8ed.tar.gz
Revert "all: Don't set AVClass.item_name to its default value"
Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index b2106a39f4..a7efd7ef3f 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2907,6 +2907,7 @@ static const AVOption h264_options[] = {
static const AVClass h264_videotoolbox_class = {
.class_name = "h264_videotoolbox",
+ .item_name = av_default_item_name,
.option = h264_options,
.version = LIBAVUTIL_VERSION_INT,
};
@@ -2942,6 +2943,7 @@ static const AVOption hevc_options[] = {
static const AVClass hevc_videotoolbox_class = {
.class_name = "hevc_videotoolbox",
+ .item_name = av_default_item_name,
.option = hevc_options,
.version = LIBAVUTIL_VERSION_INT,
};
@@ -2980,6 +2982,7 @@ static const AVOption prores_options[] = {
static const AVClass prores_videotoolbox_class = {
.class_name = "prores_videotoolbox",
+ .item_name = av_default_item_name,
.option = prores_options,
.version = LIBAVUTIL_VERSION_INT,
};