Commit 26ac4bd2 authored by michael's avatar michael

print pix_fmt if its known instead of if the raw codec is used


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4162 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1508ddc4
...@@ -725,7 +725,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) ...@@ -725,7 +725,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
snprintf(buf, buf_size, snprintf(buf, buf_size,
"Video: %s%s", "Video: %s%s",
codec_name, enc->mb_decision ? " (hq)" : ""); codec_name, enc->mb_decision ? " (hq)" : "");
if (enc->codec_id == CODEC_ID_RAWVIDEO) { if (enc->pix_fmt != PIX_FMT_NONE) {
snprintf(buf + strlen(buf), buf_size - strlen(buf), snprintf(buf + strlen(buf), buf_size - strlen(buf),
", %s", ", %s",
avcodec_get_pix_fmt_name(enc->pix_fmt)); avcodec_get_pix_fmt_name(enc->pix_fmt));
......
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