diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-19 13:33:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-20 10:34:48 +0100 |
commit | 08bebeb1bed3feee99d30cd6066d3466291dc8ed (patch) | |
tree | 89bcdd9a892d3a837b1a09d3ab0bde48557c4049 /libavformat/options.c | |
parent | a8bc79c3fd96a8287e241e6913ad5cf4d4838f5c (diff) |
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 'libavformat/options.c')
-rw-r--r-- | libavformat/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/options.c b/libavformat/options.c index e79ae221d9..75ec86ce05 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -244,6 +244,7 @@ static const AVOption stream_options[] = { static const AVClass stream_class = { .class_name = "AVStream", + .item_name = av_default_item_name, .version = LIBAVUTIL_VERSION_INT, .option = stream_options, }; @@ -383,6 +384,7 @@ static const AVOption stream_group_options[] = { static const AVClass stream_group_class = { .class_name = "AVStreamGroup", + .item_name = av_default_item_name, .version = LIBAVUTIL_VERSION_INT, .option = stream_group_options, .child_next = stream_group_child_next, |