diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-22 22:06:46 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-22 22:06:46 +0000 |
commit | 8d5fa2baa6fca5177710b7749c4644ee228fde02 (patch) | |
tree | 88aaca1893b339f12e83338fd26b72b485f05fea /libavfilter | |
parent | 448524777a738374dc73b4222f9b3b435c303664 (diff) | |
download | ffmpeg-8d5fa2baa6fca5177710b7749c4644ee228fde02.tar.gz |
Remove dependency on avcodec_get_chroma_sub_sample() and libavcodec,
use the pixdesc API instead.
Originally committed as revision 24440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_crop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 204adcfaa4..6bfee038f4 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -120,7 +120,8 @@ static int config_input(AVFilterLink *link) crop->bpp = 8; } - avcodec_get_chroma_sub_sample(link->format, &crop->hsub, &crop->vsub); + crop->hsub = av_pix_fmt_descriptors[link->format].log2_chroma_w; + crop->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h; if (crop->w == 0) crop->w = link->w - crop->x; |