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
279 279
280static const AVClass codec2_demux_class = {280static const AVClass codec2_demux_class = {
281 .class_name = "codec2 demuxer",281 .class_name = "codec2 demuxer",
282 .item_name = av_default_item_name,
282 .option = codec2_options,283 .option = codec2_options,
283 .version = LIBAVUTIL_VERSION_INT,284 .version = LIBAVUTIL_VERSION_INT,
284 .category = AV_CLASS_CATEGORY_DEMUXER,285 .category = AV_CLASS_CATEGORY_DEMUXER,
@@ -286,6 +287,7 @@ static const AVClass codec2_demux_class = { · 1 unmodified line
286 287
287static const AVClass codec2raw_demux_class = {288static const AVClass codec2raw_demux_class = {
288 .class_name = "codec2raw demuxer",289 .class_name = "codec2raw demuxer",
290 .item_name = av_default_item_name,
289 .option = codec2raw_options,291 .option = codec2raw_options,
290 .version = LIBAVUTIL_VERSION_INT,292 .version = LIBAVUTIL_VERSION_INT,
291 .category = AV_CLASS_CATEGORY_DEMUXER,293 .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