Replace "depth" with "nb_bits" in the header of avcodec_pix_fmt_string().
Originally committed as revision 25791 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7d3829a87a
commit
6a269f35ee
@ -438,12 +438,12 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
|
|||||||
/* print header */
|
/* print header */
|
||||||
if (pix_fmt < 0)
|
if (pix_fmt < 0)
|
||||||
snprintf (buf, buf_size,
|
snprintf (buf, buf_size,
|
||||||
"name " " nb_components" " depth"
|
"name " " nb_components" " nb_bits"
|
||||||
);
|
);
|
||||||
else{
|
else{
|
||||||
const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
|
const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
|
||||||
snprintf (buf, buf_size,
|
snprintf (buf, buf_size,
|
||||||
"%-11s %5d %7d",
|
"%-11s %7d %10d",
|
||||||
pixdesc->name,
|
pixdesc->name,
|
||||||
pixdesc->nb_components,
|
pixdesc->nb_components,
|
||||||
av_get_bits_per_pixel(pixdesc)
|
av_get_bits_per_pixel(pixdesc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user