[FFmpeg-cvslog] r25718 - trunk/libavcodec/imgconvert.c
stefano
subversion
Wed Nov 10 21:13:24 CET 2010
Author: stefano
Date: Wed Nov 10 21:13:24 2010
New Revision: 25718
Log:
In avcodec_pix_fmt_string() use local variable pixdesc rather than
av_pix_fmt_descriptors[pix_fmt], simplify.
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Wed Nov 10 21:13:19 2010 (r25717)
+++ trunk/libavcodec/imgconvert.c Wed Nov 10 21:13:24 2010 (r25718)
@@ -443,10 +443,10 @@ void avcodec_pix_fmt_string (char *buf,
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)
);
}
}
More information about the ffmpeg-cvslog
mailing list