ittiam-systems / libmpegh

MPEG-H 3D Audio Low Complexity Profile Decoder. Encoder: https://github.com/ittiam-systems/libmpeghe Contact: mob-audio@ittiam.com
http://www.ittiam.com/
BSD 3-Clause Clear License
88 stars 18 forks source link

Output configuration is not updated when stream parameters change #95

Open benjamin-weiss opened 3 weeks ago

benjamin-weiss commented 3 weeks ago

While decoding e.g. raw MHAS stream made from several concatenated streams it is possible for the stream parameters (e.g. number of channels or channel layout) to change. While decoder is able to recognize and handle such situation, it does not report any changes in ia_mpegh_dec_execute beside the number of channels (and this is definitely not enough for multi-channel configuration to set the correct channel layout). Additionally pstr_output_config->i_channel_mask is completely useless as it is set to 3 during init and is never changed.

One would expect the decoder to set at least new speaker layout information and CICP index on stream parameters change.

param_change.zip