[FFmpeg-cvslog] r24440 - trunk/libavfilter/vf_crop.c

stefano subversion
Fri Jul 23 00:06:46 CEST 2010


Author: stefano
Date: Fri Jul 23 00:06:46 2010
New Revision: 24440

Log:
Remove dependency on avcodec_get_chroma_sub_sample() and libavcodec,
use the pixdesc API instead.

Modified:
   trunk/libavfilter/vf_crop.c

Modified: trunk/libavfilter/vf_crop.c
==============================================================================
--- trunk/libavfilter/vf_crop.c	Fri Jul 23 00:05:21 2010	(r24439)
+++ trunk/libavfilter/vf_crop.c	Fri Jul 23 00:06:46 2010	(r24440)
@@ -120,7 +120,8 @@ static int config_input(AVFilterLink *li
         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;



More information about the ffmpeg-cvslog mailing list