[vlc-devel] [PATCH 3/6] chroma: cvpx: ensure i_codec is set
Alexandre Janniaux
ajanni at videolabs.io
Tue Jun 9 18:43:57 CEST 2020
In particular, it is used by filter_NewPicture and might raise issues
if it is incorrectly set.
---
modules/video_chroma/cvpx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_chroma/cvpx.c b/modules/video_chroma/cvpx.c
index ea275e744f..24d14bb69f 100644
--- a/modules/video_chroma/cvpx.c
+++ b/modules/video_chroma/cvpx.c
@@ -348,6 +348,7 @@ static int Open(vlc_object_t *obj)
return VLC_EGENERIC;
}
+ p_filter->fmt_out.i_codec = p_filter->fmt_out.video.i_chroma;
return VLC_SUCCESS;
error:
Close(obj);
@@ -451,6 +452,7 @@ Open_CVPX_to_CVPX(vlc_object_t *obj)
filter->pf_video_filter = Filter;
filter->vctx_out = vlc_video_context_Hold(filter->vctx_in);
+ filter->fmt_out.i_codec = filter->fmt_out.video.i_chroma;
return VLC_SUCCESS;
}
--
2.27.0
More information about the vlc-devel
mailing list