diff --git a/ffprobe.c b/ffprobe.c
index 67c4ed40fae6d8ca7653dbecf14c1bc721601e7a..4d5270feb6f6a97c9f38e172587aaa2e2ddca83e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2382,8 +2382,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
 #endif
 
     /* print AVI/FourCC tag */
-    av_get_codec_tag_string(val_str, sizeof(val_str), par->codec_tag);
-    print_str("codec_tag_string",    val_str);
+    print_str("codec_tag_string",    av_fourcc2str(par->codec_tag));
     print_fmt("codec_tag", "0x%04x", par->codec_tag);
 
     switch (par->codec_type) {