[FFmpeg-cvslog] r20617 - trunk/libavcodec/imgconvert.c
stefano
subversion
Thu Nov 26 01:33:19 CET 2009
Author: stefano
Date: Thu Nov 26 01:33:19 2009
New Revision: 20617
Log:
Use av_pix_fmt_descriptors in avcodec_get_chroma_sub_sample(), rather
than the PixFmtInfo x_chroma_shift and y_chroma_shift fields.
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Thu Nov 26 00:52:20 2009 (r20616)
+++ trunk/libavcodec/imgconvert.c Thu Nov 26 01:33:19 2009 (r20617)
@@ -532,8 +532,8 @@ static const PixFmtInfo pix_fmt_info[PIX
void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
{
- *h_shift = pix_fmt_info[pix_fmt].x_chroma_shift;
- *v_shift = pix_fmt_info[pix_fmt].y_chroma_shift;
+ *h_shift = av_pix_fmt_descriptors[pix_fmt].log2_chroma_w;
+ *v_shift = av_pix_fmt_descriptors[pix_fmt].log2_chroma_h;
}
const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt)
More information about the ffmpeg-cvslog
mailing list