Message ID | GV1P250MB0737326F4BCD621B65C50DC68F3AA@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | 66449f8c6bdf10ac1c5da7ffd5ded00e7dd4e102 |
Headers | show |
Series | [FFmpeg-devel,1/4] avcodec/msrleenc: Replace stray \r by \n | expand |
Context | Check | Description |
---|---|---|
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
andriy/configure_x86 | warning | Failed to apply patch |
sön 2023-07-16 klockan 16:51 +0200 skrev Andreas Rheinhardt:
> A private class for an encoder without options is useless.
Might be useful for explicitly using 8-bit encoding even when palette
size would permit 4-bit MSRLE. But on the other hand if anyone wants to
add 4-bit support then they can also add this stuff back in. So OK.
/Tomas
diff --git a/libavcodec/msrleenc.c b/libavcodec/msrleenc.c index 264d57e178..d5931f42fe 100644 --- a/libavcodec/msrleenc.c +++ b/libavcodec/msrleenc.c @@ -31,7 +31,6 @@ #include "encode.h" typedef struct MSRLEContext { - const AVClass *class; int curframe; AVFrame *last_frame; } MSRLEContext; @@ -282,12 +281,6 @@ static int msrle_encode_close(AVCodecContext *avctx) return 0; } -static const AVClass msrle_class = { - .class_name = "Microsoft RLE encoder", - .item_name = av_default_item_name, - .version = LIBAVUTIL_VERSION_INT, -}; - const FFCodec ff_msrle_encoder = { .p.name = "msrle", CODEC_LONG_NAME("Microsoft RLE"), @@ -301,6 +294,5 @@ const FFCodec ff_msrle_encoder = { .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_PAL8, AV_PIX_FMT_NONE }, - .p.priv_class = &msrle_class, .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, };
A private class for an encoder without options is useless. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/msrleenc.c | 8 -------- 1 file changed, 8 deletions(-)