1
0
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:
Leo Izen 2024-03-23 20:10:14 -04:00
parent 438fcc3f6e
commit ac21582e53
No known key found for this signature in database
GPG Key ID: 764E48EA48221833

View File

@ -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);