Commit e788c8dd authored by stefano's avatar stefano

Use av_pix_fmt_descriptors in avcodec_get_chroma_sub_sample(), rather

than the PixFmtInfo x_chroma_shift and y_chroma_shift fields.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20617 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 85c813a1
......@@ -532,8 +532,8 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment