diff mbox series

[FFmpeg-devel,3/3] avcodec/libvpxdec: Constify VP9-decoder

Message ID AS8P250MB0744F8A9FD84E9E3D6C576048FB89@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 4175022bdb958597d8d73e803bc18d0da93c46c3
Headers show
Series [FFmpeg-devel,1/3] avcodec/libxavs: Use frame_num instead of frame_number | expand

Checks

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

Commit Message

Andreas Rheinhardt March 12, 2023, 6:18 p.m. UTC
Possible since 8d226fb9786f34760e80e0d6b403bd63e9ac4ddd.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/allcodecs.c | 2 +-
 libavcodec/libvpxdec.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

James Zern March 13, 2023, 5:55 p.m. UTC | #1
On Sun, Mar 12, 2023 at 11:18 AM Andreas Rheinhardt
<andreas.rheinhardt@outlook.com> wrote:
>
> Possible since 8d226fb9786f34760e80e0d6b403bd63e9ac4ddd.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/allcodecs.c | 2 +-
>  libavcodec/libvpxdec.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>

lgtm.
diff mbox series

Patch

diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index e593ad19af..385ee34803 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -798,7 +798,7 @@  extern const FFCodec ff_libvorbis_decoder;
 extern const FFCodec ff_libvpx_vp8_encoder;
 extern const FFCodec ff_libvpx_vp8_decoder;
 extern FFCodec ff_libvpx_vp9_encoder;
-extern FFCodec ff_libvpx_vp9_decoder;
+extern const FFCodec ff_libvpx_vp9_decoder;
 /* preferred over libwebp */
 extern const FFCodec ff_libwebp_anim_encoder;
 extern const FFCodec ff_libwebp_encoder;
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 8e6291fe20..f480545ae0 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -377,7 +377,7 @@  static av_cold int vp9_init(AVCodecContext *avctx)
     return vpx_init(avctx, &ctx->decoder, vpx_codec_vp9_dx());
 }
 
-FFCodec ff_libvpx_vp9_decoder = {
+const FFCodec ff_libvpx_vp9_decoder = {
     .p.name         = "libvpx-vp9",
     CODEC_LONG_NAME("libvpx VP9"),
     .p.type         = AVMEDIA_TYPE_VIDEO,