History

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.

Anton Khirnov committed 2 years ago

Commit 08bebeb1 parent a8bc79c363 files · +408 −0Browse files

Showing the changes to libavformat/codec2.c (1 of 363 files). Show all

Unified · Split

libavformat/codec2.c+2−0
@@ -279,6 +279,7 @@ static const AVOption codec2raw_options[] = { · 278 unmodified lines
279279
280280 static const AVClass codec2_demux_class = {
281281 .class_name = "codec2 demuxer",
282+ .item_name = av_default_item_name,
282283 .option = codec2_options,
283284 .version = LIBAVUTIL_VERSION_INT,
284285 .category = AV_CLASS_CATEGORY_DEMUXER,
@@ -286,6 +287,7 @@ static const AVClass codec2_demux_class = { · 1 unmodified line
286287
287288 static const AVClass codec2raw_demux_class = {
288289 .class_name = "codec2raw demuxer",
290+ .item_name = av_default_item_name,
289291 .option = codec2raw_options,
290292 .version = LIBAVUTIL_VERSION_INT,
291293 .category = AV_CLASS_CATEGORY_DEMUXER,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t