diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-31 19:33:29 +0300 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-31 19:33:29 +0300 |
commit | b4b664565573e0c54474c7bfb6adc19cb7b28a55 (patch) | |
tree | a544693925d18b353e8b4ee8c28ba07c6e97686f /libavfilter/vf_vflip.c | |
parent | 971c55f18680020908eeae3972bd20b36921b7e1 (diff) |
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
Diffstat (limited to 'libavfilter/vf_vflip.c')
-rw-r--r-- | libavfilter/vf_vflip.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |