History

swscale/input: Remove spec-incompliant ';'

These macros are definitions, not only declarations and therefore should not contain a semicolon. Such a semicolon is actually spec-incompliant, but compilers happen to accept them.

Andreas Rheinhardt committed 4 years ago

Commit d2428d81 parent 0912e791 file · +5 −5Browse files

Unified · Split

libswscale/input.c+5−5
@@ -583,8 +583,8 @@ static void yvy2ToUV_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, con · 582 unmodified lines
583 AV_WN16(dst + i * 2, AV_RL16(src + i * 4) >> shift); \583 AV_WN16(dst + i * 2, AV_RL16(src + i * 4) >> shift); \
584 }584 }
585 585
586y21xle_wrapper(10, 6);586y21xle_wrapper(10, 6)
587y21xle_wrapper(12, 4);587y21xle_wrapper(12, 4)
588 588
589static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width,589static void bswap16Y_c(uint8_t *_dst, const uint8_t *_src, const uint8_t *unused1, const uint8_t *unused2, int width,
590 uint32_t *unused, void *opq)590 uint32_t *unused, void *opq)
@@ -828,9 +828,9 @@ static void nv21ToUV_c(uint8_t *dstU, uint8_t *dstV, · 237 unmodified lines
828 } \828 } \
829 p01x_uv_wrapper(bits, shift)829 p01x_uv_wrapper(bits, shift)
830 830
831p01x_wrapper(10, 6);831p01x_wrapper(10, 6)
832p01x_wrapper(12, 4);832p01x_wrapper(12, 4)
833p01x_uv_wrapper(16, 0);833p01x_uv_wrapper(16, 0)
834 834
835#define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))835#define input_pixel(pos) (isBE(origin) ? AV_RB16(pos) : AV_RL16(pos))
836 836

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