Easily possible now that -Wdeclaration-after-statement is gone.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx) · 69 unmodified lines | |||
| 70 | 70 | ||
| 71 | static av_cold int mp_decode_init(AVCodecContext *avctx) | 71 | static av_cold int mp_decode_init(AVCodecContext *avctx) |
| 72 | { | 72 | { |
| 73 | av_unused static AVOnce init_static_once = AV_ONCE_INIT; | ||
| 74 | MotionPixelsContext *mp = avctx->priv_data; | 73 | MotionPixelsContext *mp = avctx->priv_data; |
| 75 | int w4 = (avctx->width + 3) & ~3; | 74 | int w4 = (avctx->width + 3) & ~3; |
| 76 | int h4 = (avctx->height + 3) & ~3; | 75 | int h4 = (avctx->height + 3) & ~3; |
| @@ -95,6 +94,7 @@ static av_cold int mp_decode_init(AVCodecContext *avctx) · 18 unmodified lines | |||
| 95 | return AVERROR(ENOMEM); | 94 | return AVERROR(ENOMEM); |
| 96 | 95 | ||
| 97 | #if !CONFIG_HARDCODED_TABLES | 96 | #if !CONFIG_HARDCODED_TABLES |
| 97 | static AVOnce init_static_once = AV_ONCE_INIT; | ||
| 98 | ff_thread_once(&init_static_once, motionpixels_tableinit); | 98 | ff_thread_once(&init_static_once, motionpixels_tableinit); |
| 99 | #endif | 99 | #endif |
| 100 | 100 | ||