From b4b664565573e0c54474c7bfb6adc19cb7b28a55 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 31 Jan 2010 16:33:29 +0000 Subject: Avoid usage of avcodec_get_pix_fmt_name() and avcodec_get_chroma_sub_sample(), directly access av_pix_fmt_descriptors instead. Remove some of the dependancies of lavfi on lavc. Originally committed as revision 21575 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/vf_vflip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/vf_vflip.c') diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index 39c0405c04..9c0e80adf5 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -23,6 +23,7 @@ * video vertical flip filter */ +#include "libavutil/pixdesc.h" #include "avfilter.h" typedef struct { @@ -32,9 +33,8 @@ typedef struct { static int config_input(AVFilterLink *link) { FlipContext *flip = link->dst->priv; - int tmp; - avcodec_get_chroma_sub_sample(link->format, &tmp, &flip->vsub); + flip->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h; return 0; } -- cgit v1.2.3