[FFmpeg-devel] [PATCH v3 1/3] avutil/utils: Allow "!" in FourCCs
Andrew Sayers
ffmpeg-devel at pileofstuff.org
Thu Jul 18 13:46:47 EEST 2024
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
More information about the ffmpeg-devel
mailing list