aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/motionpixels.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-10 12:54:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-13 22:47:26 +0200
commitc8c4e55b2b56f9b95b26eebdb047ec8c57c32476 (patch)
treedfa96ce3adca638abaab90473c2dad9c96c1539c /libavcodec/motionpixels.c
parentbf327ac6762dfbf17ce7c766bbcd3f86942769f6 (diff)
downloadffmpeg-c8c4e55b2b56f9b95b26eebdb047ec8c57c32476.tar.gz
avcodec/motionpixels: Avoid av_unused
Easily possible now that -Wdeclaration-after-statement is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/motionpixels.c')
-rw-r--r--libavcodec/motionpixels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/motionpixels.c b/libavcodec/motionpixels.c
index 287f35f305..e5c3daece6 100644
--- a/libavcodec/motionpixels.c
+++ b/libavcodec/motionpixels.c
@@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx)
static av_cold int mp_decode_init(AVCodecContext *avctx)
{
- av_unused static AVOnce init_static_once = AV_ONCE_INIT;
MotionPixelsContext *mp = avctx->priv_data;
int w4 = (avctx->width + 3) & ~3;
int h4 = (avctx->height + 3) & ~3;
@@ -95,6 +94,7 @@ static av_cold int mp_decode_init(AVCodecContext *avctx)
return AVERROR(ENOMEM);
#if !CONFIG_HARDCODED_TABLES
+ static AVOnce init_static_once = AV_ONCE_INIT;
ff_thread_once(&init_static_once, motionpixels_tableinit);
#endif