[FFmpeg-devel] [PATCH v3 1/3] avutil/utils: Allow "!" in FourCCs
Paul B Mahol
onemda at gmail.com
Thu Jul 18 18:42:40 EEST 2024
On Thu, Jul 18, 2024 at 12:48 PM Andrew Sayers <ffmpeg-devel at pileofstuff.org>
wrote:
> For example, AVERROR_BUG is "BUG!"
> ---
> libavutil/utils.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavutil/utils.c b/libavutil/utils.c
> index 94d247bbee..a94589e873 100644
> --- a/libavutil/utils.c
> +++ b/libavutil/utils.c
> @@ -81,7 +81,7 @@ char *av_fourcc_make_string(char *buf, uint32_t fourcc)
> const int print_chr = (c >= '0' && c <= '9') ||
> (c >= 'a' && c <= 'z') ||
> (c >= 'A' && c <= 'Z') ||
> - (c && strchr(". -_", c));
> + (c && strchr(". -_!", c));
> const int len = snprintf(buf, buf_size, print_chr ? "%c" :
> "[%d]", c);
> if (len < 0)
> break;
> --
> 2.45.2
>
>
Are FourCC alowed to have "!" ?
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list