diff options
Diffstat (limited to 'video/filter/vf_unsharp.c')
-rw-r--r-- | video/filter/vf_unsharp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/video/filter/vf_unsharp.c b/video/filter/vf_unsharp.c index c3150b9a33..dcca82df5b 100644 --- a/video/filter/vf_unsharp.c +++ b/video/filter/vf_unsharp.c @@ -206,9 +206,7 @@ static void uninit( struct vf_instance *vf ) { static int query_format( struct vf_instance *vf, unsigned int fmt ) { switch(fmt) { - case IMGFMT_YV12: - case IMGFMT_I420: - case IMGFMT_IYUV: + case IMGFMT_420P: return vf_next_query_format( vf, vf->priv->outfmt ); } return 0; @@ -241,9 +239,7 @@ static void parse( FilterParam *fp, char* args ) { //===========================================================================// static const unsigned int fmt_list[] = { - IMGFMT_YV12, - IMGFMT_I420, - IMGFMT_IYUV, + IMGFMT_420P, 0 }; @@ -279,7 +275,7 @@ static int vf_open( vf_instance_t *vf, char *args ) { } // check csp: - vf->priv->outfmt = vf_match_csp( &vf->next, fmt_list, IMGFMT_YV12 ); + vf->priv->outfmt = vf_match_csp( &vf->next, fmt_list, IMGFMT_420P ); if( !vf->priv->outfmt ) { uninit( vf ); return 0; // no csp match :( |