* using pixtype as enum - by Philip Gladstone

Originally committed as revision 389 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Zdenek Kabelac
2002-04-08 21:03:35 +00:00
parent 4606ac8dee
commit bc657ac31d
4 changed files with 10 additions and 1 deletions

View File

@@ -205,6 +205,7 @@ AVCodec *avcodec_find(enum CodecID id)
}
const char *pix_fmt_str[] = {
"??",
"yuv420p",
"yuv422",
"rgb24",
@@ -259,6 +260,9 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
enc->width, enc->height,
(float)enc->frame_rate / FRAME_RATE_BASE);
}
snprintf(buf + strlen(buf), buf_size - strlen(buf),
", q=%d-%d", enc->qmin, enc->qmax);
bitrate = enc->bit_rate;
break;
case CODEC_TYPE_AUDIO: