aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-17 21:00:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-17 21:13:01 +0200
commit0b0d47e4b21e8936707183967d840f64ba055cb2 (patch)
tree2fc966ace26f75749fe80a14941acf9b71d4bebe
parent45fed258ee6a58ca7e12a94936fa24b742d48f69 (diff)
parentbae557edcea996328e8ff48b9e074a4210f7e6b4 (diff)
downloadffmpeg-0b0d47e4b21e8936707183967d840f64ba055cb2.tar.gz
Merge commit 'bae557edcea996328e8ff48b9e074a4210f7e6b4'
* commit 'bae557edcea996328e8ff48b9e074a4210f7e6b4': dump: display codec tags when available Conflicts: libavcodec/utils.c See: d2d7b7134fc387837d51aa1d7f3dbe090d35e8b4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9f65340d93..f040dae7f4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2995,6 +2995,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
if (profile)
snprintf(buf + strlen(buf), buf_size - strlen(buf), " (%s)", profile);
+
if (enc->codec_tag) {
char tag_buf[32];
av_get_codec_tag_string(tag_buf, sizeof(tag_buf), enc->codec_tag);
@@ -3082,6 +3083,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
break;
case AVMEDIA_TYPE_AUDIO:
av_strlcat(buf, separator, buf_size);
+
if (enc->sample_rate) {
snprintf(buf + strlen(buf), buf_size - strlen(buf),
"%d Hz, ", enc->sample_rate);