mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-19 09:53:18 +00:00
avcodec/motionpixels: Avoid av_unused
Easily possible now that -Wdeclaration-after-statement is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
bf327ac676
commit
c8c4e55b2b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue