[vlc-commits] chroma: cvpx: ensure i_codec is set
Alexandre Janniaux
git at videolan.org
Wed Jun 24 15:46:32 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Jun 9 18:43:57 2020 +0200| [c6db2f61aca23330c62c911b67e194c6c2a4858a] | committer: Alexandre Janniaux
chroma: cvpx: ensure i_codec is set
In particular, it is used by filter_NewPicture and might raise issues
if it is incorrectly set.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6db2f61aca23330c62c911b67e194c6c2a4858a
---
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;
}
More information about the vlc-commits
mailing list