[FFmpeg-devel] [PATCH]Show underscores in codec_tags

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Dec 18 22:56:58 CET 2012


Hi!

Attached patch makes console output for 28.8 real audio nicer.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index abd930d..c8c7c47 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2014,7 +2014,7 @@ size_t av_get_codec_tag_string(char *buf, size_t buf_size, unsigned int codec_ta
 #define IS_PRINT(x)                                               \
     (((x) >= '0' && (x) <= '9') ||                                \
      ((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z') ||  \
-     ((x) == '.' || (x) == ' ' || (x) == '-'))
+     ((x) == '.' || (x) == ' ' || (x) == '-' || (x) == '_'))
 
     for (i = 0; i < 4; i++) {
         len = snprintf(buf, buf_size,


More information about the ffmpeg-devel mailing list