[FFmpeg-devel] [PATCH 1/4] fftools/cmdutils: Fix undefined 1 << 31
James Almer
jamrial at gmail.com
Fri Nov 19 01:01:43 EET 2021
On 11/18/2021 6:07 AM, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> fftools/cmdutils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
> index 594eeef379..f80c361eba 100644
> --- a/fftools/cmdutils.c
> +++ b/fftools/cmdutils.c
> @@ -1823,7 +1823,7 @@ int show_sample_fmts(void *optctx, const char *opt, const char *arg)
> int show_dispositions(void *optctx, const char *opt, const char *arg)
> {
> for (int i = 0; i < 32; i++) {
> - const char *str = av_disposition_to_string(1 << i);
> + const char *str = av_disposition_to_string(1U << i);
LGTM.
> if (str)
> printf("%s\n", str);
> }
>
More information about the ffmpeg-devel
mailing list