diff --git a/src/input/demux.c b/src/input/demux.c index ecc81e9dac5d8b4f7cfb5d39dd06d2cbc9e649a0..466730a21eb9d9e3fb31974ed588bdc44fb04ae4 100644 --- a/src/input/demux.c +++ b/src/input/demux.c @@ -514,7 +514,7 @@ decoder_t *demux_PacketizerNew( demux_t *p_demux, es_format_t *p_fmt, const char p_packetizer->pf_packetize = NULL; p_packetizer->fmt_in = *p_fmt; - es_format_Init( &p_packetizer->fmt_out, UNKNOWN_ES, 0 ); + es_format_Init( &p_packetizer->fmt_out, p_fmt->i_cat, 0 ); p_packetizer->p_module = module_need( p_packetizer, "packetizer", NULL, false ); if( !p_packetizer->p_module )