Mercurial > libavcodec.hg
changeset 2636:2344c6713011 libavcodec
print pix_fmt if its known instead of if the raw codec is used
author | michael |
---|---|
date | Mon, 25 Apr 2005 18:41:38 +0000 |
parents | eaa57c3336fc |
children | ef44d24680d1 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Apr 25 18:29:06 2005 +0000 +++ b/utils.c Mon Apr 25 18:41:38 2005 +0000 @@ -725,7 +725,7 @@ 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));