We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf327ac commit c8c4e55Copy full SHA for c8c4e55
libavcodec/motionpixels.c
@@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx)
70
71
static av_cold int mp_decode_init(AVCodecContext *avctx)
72
{
73
- av_unused static AVOnce init_static_once = AV_ONCE_INIT;
74
MotionPixelsContext *mp = avctx->priv_data;
75
int w4 = (avctx->width + 3) & ~3;
76
int h4 = (avctx->height + 3) & ~3;
@@ -95,6 +94,7 @@ static av_cold int mp_decode_init(AVCodecContext *avctx)
95
94
return AVERROR(ENOMEM);
96
97
#if !CONFIG_HARDCODED_TABLES
+ static AVOnce init_static_once = AV_ONCE_INIT;
98
ff_thread_once(&init_static_once, motionpixels_tableinit);
99
#endif
100
0 commit comments