git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
644a926
)
print pix_fmt if its known instead of if the raw codec is used
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Apr 2005 18:41:38 +0000
(18:41 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Apr 2005 18:41:38 +0000
(18:41 +0000)
Originally committed as revision 4162 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
f675ce8
..
4ef9cb2
100644
(file)
--- 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));