forked from FFmpeg/FFmpeg
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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue