diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-26 00:33:19 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-26 00:33:19 +0000 |
commit | 38264abb06cb605df00e6bc0a1660dc221bb4718 (patch) | |
tree | d447271a164d94064b9dc137385b74f6a638664e /libavcodec/imgconvert.c | |
parent | 8e861e1b1ee559828096152d06fb99356ef3e5c4 (diff) | |
download | ffmpeg-38264abb06cb605df00e6bc0a1660dc221bb4718.tar.gz |
Use av_pix_fmt_descriptors in avcodec_get_chroma_sub_sample(), rather
than the PixFmtInfo x_chroma_shift and y_chroma_shift fields.
Originally committed as revision 20617 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 9dfef3acaf..d8ee8ac2ff 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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) |