You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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:
@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx)
|
|||||||
|
|
||||||
static av_cold int mp_decode_init(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;
|
MotionPixelsContext *mp = avctx->priv_data;
|
||||||
int w4 = (avctx->width + 3) & ~3;
|
int w4 = (avctx->width + 3) & ~3;
|
||||||
int h4 = (avctx->height + 3) & ~3;
|
int h4 = (avctx->height + 3) & ~3;
|
||||||
@ -95,6 +94,7 @@ static av_cold int mp_decode_init(AVCodecContext *avctx)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
#if !CONFIG_HARDCODED_TABLES
|
#if !CONFIG_HARDCODED_TABLES
|
||||||
|
static AVOnce init_static_once = AV_ONCE_INIT;
|
||||||
ff_thread_once(&init_static_once, motionpixels_tableinit);
|
ff_thread_once(&init_static_once, motionpixels_tableinit);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user