mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
In avcodec_pix_fmt_string() use local variable pixdesc rather than
av_pix_fmt_descriptors[pix_fmt], simplify. Originally committed as revision 25718 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2de6f6e828
commit
119a34f716
@ -443,10 +443,10 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
|
||||
else{
|
||||
const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
|
||||
snprintf (buf, buf_size,
|
||||
"%-11s %7d %9d",
|
||||
av_pix_fmt_descriptors[pix_fmt].name,
|
||||
"%-11s %5d %7d",
|
||||
pixdesc->name,
|
||||
pixdesc->nb_components,
|
||||
av_get_bits_per_pixel(&av_pix_fmt_descriptors[pix_fmt])
|
||||
av_get_bits_per_pixel(pixdesc)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user