# HG changeset patch # User alex # Date 1116687627 0 # Node ID 7e9403eec2f6e26fc982ae4d2661069f9c2560d3 # Parent b39eee207c421e35624c613e00372433c5a9833c 10l diff -r b39eee207c42 -r 7e9403eec2f6 libmpcodecs/vf_scale.c --- a/libmpcodecs/vf_scale.c Sat May 21 14:44:10 2005 +0000 +++ b/libmpcodecs/vf_scale.c Sat May 21 15:00:27 2005 +0000 @@ -429,7 +429,7 @@ int flags; if(!best) return 0; // no matching out-fmt flags=vf_next_query_format(vf,best); - if(!(flags&3)) return 0; // huh? + if(!(flags&(VFCAP_CSP_SUPPORTED|VFCAP_CSP_SUPPORTED_BY_HW))) return 0; // huh? if(fmt!=best) flags&=~VFCAP_CSP_SUPPORTED_BY_HW; // do not allow scaling, if we are before the PP fliter! if(!(flags&VFCAP_POSTPROC)) flags|=VFCAP_SWSCALE;