[vlc-devel] [PATCH 1/3] x264: don't force the output ES format
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 12 16:41:24 UTC 2021
If it's not set when calling Open there is a big problem.
---
modules/codec/x264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 1e04a9ca018..fe6c043015d 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -804,7 +804,7 @@ static int Open ( vlc_object_t *p_this )
config_ChainParse( p_enc, SOUT_CFG_PREFIX, ppsz_sout_options, p_enc->p_cfg );
- p_enc->fmt_out.i_cat = VIDEO_ES;
+ assert(p_enc->fmt_out.i_cat == VIDEO_ES);
#ifdef MODULE_NAME_IS_x262
p_enc->fmt_out.i_codec = VLC_CODEC_MP2V;
#else
--
2.29.2
More information about the vlc-devel
mailing list