[vlc-commits] decoder: assert than fmt categories match

Thomas Guillem git at videolan.org
Fri Jan 22 08:56:19 UTC 2021


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 20 11:59:24 2021 +0100| [18fd6e80525c39831f6818f480e747b672c02ac7] | committer: Thomas Guillem

decoder: assert than fmt categories match

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18fd6e80525c39831f6818f480e747b672c02ac7
---

 src/input/decoder.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index d475f3d207..3f03f36b09 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 )
     {



More information about the vlc-commits mailing list