Commit e1409d92 authored by stefano's avatar stefano

Make avcodec_string() use av_get_codec_tag_string().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23422 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3133fef0
...@@ -840,17 +840,9 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) ...@@ -840,17 +840,9 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
codec_name = enc->codec_name; codec_name = enc->codec_name;
} else { } else {
/* output avi tags */ /* output avi tags */
if( isprint(enc->codec_tag&0xFF) && isprint((enc->codec_tag>>8)&0xFF) char tag_buf[32];
&& isprint((enc->codec_tag>>16)&0xFF) && isprint((enc->codec_tag>>24)&0xFF)){ av_get_codec_tag_string(tag_buf, sizeof(tag_buf), enc->codec_tag);
snprintf(buf1, sizeof(buf1), "%c%c%c%c / 0x%04X", snprintf(buf1, sizeof(buf1), "%s / 0x%04X", tag_buf, enc->codec_tag);
enc->codec_tag & 0xff,
(enc->codec_tag >> 8) & 0xff,
(enc->codec_tag >> 16) & 0xff,
(enc->codec_tag >> 24) & 0xff,
enc->codec_tag);
} else {
snprintf(buf1, sizeof(buf1), "0x%04x", enc->codec_tag);
}
codec_name = buf1; codec_name = buf1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment