Message ID | AS8P250MB0744812BC907FEF4E91025738F592@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | 9209350f8d7365907b811cbc012a8ab899cc5a60 |
Headers | show |
Series | [FFmpeg-devel,1/9] avcodec/libxevd: Remove FF_CODEC_CAP_SETS_PKT_DTS cap | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
> -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of > Andreas Rheinhardt > Sent: wtorek, 27 lutego 2024 20:59 > To: ffmpeg-devel@ffmpeg.org > Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> > Subject: [FFmpeg-devel] [PATCH 6/9] avcodec/libxevd: Remove useless AVClass > > This decoder does not have options. > > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> > --- > libavcodec/libxevd.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c index > de0739a80c..5075936a0e 100644 > --- a/libavcodec/libxevd.c > +++ b/libavcodec/libxevd.c > @@ -50,8 +50,6 @@ > * The structure stores all the states associated with the instance of Xeve MPEG- > 5 EVC decoder > */ > typedef struct XevdContext { > - const AVClass *class; > - > XEVD id; // XEVD instance identifier @see xevd.h > XEVD_CDSC cdsc; // decoding parameters @see xevd.h > > @@ -471,15 +469,6 @@ static av_cold int libxevd_close(AVCodecContext > *avctx) > return 0; > } > > -#define OFFSET(x) offsetof(XevdContext, x) -#define VD > AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM > - > -static const AVClass libxevd_class = { > - .class_name = "libxevd", > - .item_name = av_default_item_name, > - .version = LIBAVUTIL_VERSION_INT, > -}; > - > const FFCodec ff_libxevd_decoder = { > .p.name = "evc", > .p.long_name = NULL_IF_CONFIG_SMALL("EVC / MPEG-5 Essential Video > Coding (EVC)"), > @@ -489,7 +478,6 @@ const FFCodec ff_libxevd_decoder = { > FF_CODEC_RECEIVE_FRAME_CB(libxevd_receive_frame), > .close = libxevd_close, > .priv_data_size = sizeof(XevdContext), > - .p.priv_class = &libxevd_class, > .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | > AV_CODEC_CAP_OTHER_THREADS | > AV_CODEC_CAP_AVOID_PROBING, > .p.profiles = NULL_IF_CONFIG_SMALL(ff_evc_profiles), > -- > 2.40.1 > It has been checked. Looks good. > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://protect2.fireeye.com/v1/url?k=bf2f1a4e-e0b33364-bf2e9101- > 000babe598f7-5400e6cfb92c61da&q=1&e=f85ba7c0-e001-488d-9c87- > 565dfbde8ea3&u=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmp > eg-devel > > To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org > with subject "unsubscribe".
diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c index de0739a80c..5075936a0e 100644 --- a/libavcodec/libxevd.c +++ b/libavcodec/libxevd.c @@ -50,8 +50,6 @@ * The structure stores all the states associated with the instance of Xeve MPEG-5 EVC decoder */ typedef struct XevdContext { - const AVClass *class; - XEVD id; // XEVD instance identifier @see xevd.h XEVD_CDSC cdsc; // decoding parameters @see xevd.h @@ -471,15 +469,6 @@ static av_cold int libxevd_close(AVCodecContext *avctx) return 0; } -#define OFFSET(x) offsetof(XevdContext, x) -#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM - -static const AVClass libxevd_class = { - .class_name = "libxevd", - .item_name = av_default_item_name, - .version = LIBAVUTIL_VERSION_INT, -}; - const FFCodec ff_libxevd_decoder = { .p.name = "evc", .p.long_name = NULL_IF_CONFIG_SMALL("EVC / MPEG-5 Essential Video Coding (EVC)"), @@ -489,7 +478,6 @@ const FFCodec ff_libxevd_decoder = { FF_CODEC_RECEIVE_FRAME_CB(libxevd_receive_frame), .close = libxevd_close, .priv_data_size = sizeof(XevdContext), - .p.priv_class = &libxevd_class, .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS | AV_CODEC_CAP_AVOID_PROBING, .p.profiles = NULL_IF_CONFIG_SMALL(ff_evc_profiles),
This decoder does not have options. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/libxevd.c | 12 ------------ 1 file changed, 12 deletions(-)