History

avcodec/motionpixels: Avoid av_unused

Easily possible now that -Wdeclaration-after-statement is gone.

Andreas Rheinhardt committed 1 year ago

Commit c8c4e551 parent bf327ac1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/motionpixels.c+1−1
@@ -70,7 +70,6 @@ static av_cold int mp_decode_end(AVCodecContext *avctx) · 69 unmodified lines
70 70
71static av_cold int mp_decode_init(AVCodecContext *avctx)71static 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_TABLES96#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#endif99#endif
100 100

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t