[FFmpeg-soc] [soc]: r5828 - libavfilter/vf_overlay.c

stefano subversion at mplayerhq.hu
Thu Jun 10 00:03:13 CEST 2010


Author: stefano
Date: Thu Jun 10 00:03:13 2010
New Revision: 5828

Log:
Remove dependancy on libavcodec, use pixdesc API instead for computing
chroma subsample.

Modified:
   libavfilter/vf_overlay.c

Modified: libavfilter/vf_overlay.c
==============================================================================
--- libavfilter/vf_overlay.c	Wed Jun  9 23:44:01 2010	(r5827)
+++ libavfilter/vf_overlay.c	Thu Jun 10 00:03:13 2010	(r5828)
@@ -27,6 +27,7 @@
 #include "avfilter.h"
 #include "libavutil/eval.h"
 #include "libavutil/avstring.h"
+#include "libavutil/pixdesc.h"
 
 static const char *var_names[] = {
     "main_w",    ///< width of the main video
@@ -117,7 +118,8 @@ static int config_input_main(AVFilterLin
         over->bpp = 1;
     }
 
-    avcodec_get_chroma_sub_sample(link->format, &over->hsub, &over->vsub);
+    over->hsub = av_pix_fmt_descriptors[link->format].log2_chroma_w;
+    over->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
 
     return 0;
 }


More information about the FFmpeg-soc mailing list