diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-10 20:13:24 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-10 20:13:24 +0000 |
commit | 119a34f716e7a403d2718ac84c1249a68336554e (patch) | |
tree | dcb77cd55cfbb40fae7f134c83055f36387accda /libavcodec/imgconvert.c | |
parent | 2de6f6e8284ca63266330ada36d75ed4e37ccf19 (diff) | |
download | ffmpeg-119a34f716e7a403d2718ac84c1249a68336554e.tar.gz |
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
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index cfee2a47e1..a7d88122fb 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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) ); } } |