mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
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
This commit is contained in:
parent
448524777a
commit
8d5fa2baa6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user