Skip to content

Commit c8c4e55

Browse files
committed
avcodec/motionpixels: Avoid av_unused
Easily possible now that -Wdeclaration-after-statement is gone. Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent bf327ac commit c8c4e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/motionpixels.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx)
7070

7171
static av_cold int mp_decode_init(AVCodecContext *avctx)
7272
{
73-
av_unused static AVOnce init_static_once = AV_ONCE_INIT;
7473
MotionPixelsContext *mp = avctx->priv_data;
7574
int w4 = (avctx->width + 3) & ~3;
7675
int h4 = (avctx->height + 3) & ~3;
@@ -95,6 +94,7 @@ static av_cold int mp_decode_init(AVCodecContext *avctx)
9594
return AVERROR(ENOMEM);
9695

9796
#if !CONFIG_HARDCODED_TABLES
97+
static AVOnce init_static_once = AV_ONCE_INIT;
9898
ff_thread_once(&init_static_once, motionpixels_tableinit);
9999
#endif
100100

0 commit comments

Comments
 (0)