summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-25 18:41:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-25 18:41:38 +0000
commit82c0c4ba785d2d98c3465e3fb0b25010dfb770ed (patch)
tree3061b65993c4ef619ffe95915180054c0b72e3c5
parent644a92626a94d6f24110309cb2dc7d9ec3e79f25 (diff)
print pix_fmt if its known instead of if the raw codec is used
Originally committed as revision 4162 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f675ce8831..4ef9cb24a2 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -725,7 +725,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
snprintf(buf, buf_size,
"Video: %s%s",
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),
", %s",
avcodec_get_pix_fmt_name(enc->pix_fmt));