[vlc-devel] [PATCH 1/2] decoder: assert than fmt categories match
Thomas Guillem
thomas at gllm.fr
Wed Jan 20 11:00:54 UTC 2021
---
src/input/decoder.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index d475f3d207b..3f03f36b091 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -276,6 +276,8 @@ static void DecoderUpdateFormatLocked( vlc_input_decoder_t *p_owner )
es_format_Clean( &p_owner->fmt );
es_format_Copy( &p_owner->fmt, &p_dec->fmt_out );
+ assert( p_owner->fmt.i_cat == p_dec->fmt_in.i_cat );
+
/* Move p_description */
if( p_dec->p_description != NULL )
{
--
2.29.2
More information about the vlc-devel
mailing list