diff options
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_crop.c | 2 | ||||
-rw-r--r-- | video/filter/vf_rotate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_crop.c b/video/filter/vf_crop.c index c1cb069a81..f9cb99eb75 100644 --- a/video/filter/vf_crop.c +++ b/video/filter/vf_crop.c @@ -51,7 +51,7 @@ static int config(struct vf_instance *vf, if(vf->priv->crop_x<0) vf->priv->crop_x=(width-vf->priv->crop_w)/2; if(vf->priv->crop_y<0) vf->priv->crop_y=(height-vf->priv->crop_h)/2; // rounding: - if(!IMGFMT_IS_RGB(outfmt) && !IMGFMT_IS_BGR(outfmt)){ + if(!IMGFMT_IS_RGB(outfmt)){ switch(outfmt){ case IMGFMT_444P: case IMGFMT_Y8: diff --git a/video/filter/vf_rotate.c b/video/filter/vf_rotate.c index d6d2d0df85..b4e8fe59bd 100644 --- a/video/filter/vf_rotate.c +++ b/video/filter/vf_rotate.c @@ -108,7 +108,7 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) //===========================================================================// static int query_format(struct vf_instance *vf, unsigned int fmt){ - if(IMGFMT_IS_RGB(fmt) || IMGFMT_IS_BGR(fmt)) return vf_next_query_format(vf, fmt); + if(IMGFMT_IS_RGB(fmt)) return vf_next_query_format(vf, fmt); // we can support only symmetric (chroma_x_shift==chroma_y_shift) YUV formats: switch(fmt) { case IMGFMT_Y8: |