Unified · Split
| @@ -29,13 +29,9 @@ · 28 unmodified lines | ||
| 29 | 29 | #include "avtextformat.h" |
| 30 | 30 | |
| 31 | 31 | #define DEFINE_FORMATTER_CLASS(name) \ |
| 32 | −static const char *name##_get_name(void *ctx) \ | |
| 33 | −{ \ | |
| 34 | − return #name ; \ | |
| 35 | −} \ | |
| 36 | 32 | static const AVClass name##_class = { \ |
| 37 | 33 | .class_name = #name, \ |
| 38 | − .item_name = name##_get_name, \ | |
| 34 | + .item_name = av_default_item_name, \ | |
| 39 | 35 | .option = name##_options \ |
| 40 | 36 | } |
| 41 | 37 | |