mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avutil/film_grain_params: remove do loop in CHECK macro
The continue statement will break out of the do/while loop, not the outer loop as intended. This is one (compound) statement anyway, so we can remove the do/while entirely. Signed-off-by: Leo Izen <leo.izen@gmail.com>
This commit is contained in:
parent
438fcc3f6e
commit
ac21582e53
@ -70,10 +70,8 @@ const AVFilmGrainParams *av_film_grain_params_select(const AVFrame *frame)
|
||||
continue;
|
||||
|
||||
#define CHECK(a, b, unspec) \
|
||||
do { \
|
||||
if ((a) != (unspec) && (b) != (unspec) && (a) != (b)) \
|
||||
continue; \
|
||||
} while (0)
|
||||
continue
|
||||
|
||||
CHECK(fgp->bit_depth_luma, bit_depth_luma, 0);
|
||||
CHECK(fgp->bit_depth_chroma, bit_depth_chroma, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user