diff mbox series

[FFmpeg-devel,05/41] avformat/codec2: Remove unused AVClass with wrong category

Message ID VI1PR0301MB2159E9B7ED70B32A1CCE4CE18F0E9@VI1PR0301MB2159.eurprd03.prod.outlook.com
State Accepted
Commit cd564ee547de3ffee1764e9c3bbc055556af2482
Headers show
Series [FFmpeg-devel,01/41] avformat/Makefile: Add missing rawdec dependency for IPU demuxer
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt June 17, 2021, 2:31 a.m. UTC
The codec2 muxer has no options and so it needs no AVClass;
and it certainly needs no AVClass of category AV_CLASS_CATEGORY_DEMUXER.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/codec2.c | 8 --------
 1 file changed, 8 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/codec2.c b/libavformat/codec2.c
index 9c94ed81f9..7dd60031b1 100644
--- a/libavformat/codec2.c
+++ b/libavformat/codec2.c
@@ -276,13 +276,6 @@  static const AVOption codec2raw_options[] = {
     { NULL },
 };
 
-static const AVClass codec2_mux_class = {
-    .class_name = "codec2 muxer",
-    .item_name  = av_default_item_name,
-    .version    = LIBAVUTIL_VERSION_INT,
-    .category   = AV_CLASS_CATEGORY_DEMUXER,
-};
-
 static const AVClass codec2_demux_class = {
     .class_name = "codec2 demuxer",
     .item_name  = av_default_item_name,
@@ -326,7 +319,6 @@  const AVOutputFormat ff_codec2_muxer = {
     .write_header   = codec2_write_header,
     .write_packet   = ff_raw_write_packet,
     .flags          = AVFMT_NOTIMESTAMPS,
-    .priv_class     = &codec2_mux_class,
 };
 #endif