Skip to content
Snippets Groups Projects
Commit c751159b authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

chroma: cvpx: avoid conversion to self without resize

CVP* -> CVP* with the star equal to the same value is possible when
building a resize+chroma chain, but in the case of chroma only we don't
want to add additional steps.
parent c6db2f61
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,12 @@ Open_CVPX_to_CVPX(vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
/* Avoid conversion to self if we're not resizing */
if (filter->fmt_in.video.i_chroma == filter->fmt_out.video.i_chroma &&
filter->fmt_in.video.i_visible_width == filter->fmt_out.video.i_visible_width &&
filter->fmt_in.video.i_visible_height == filter->fmt_out.video.i_visible_height)
return VLC_EGENERIC;
if (filter->vctx_in == NULL ||
vlc_video_context_GetType(filter->vctx_in) != VLC_VIDEO_CONTEXT_CVPX)
return VLC_EGENERIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment