Commit 0547c4a9 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: a52: fix assertion on E-AC3 substreams

parent 0c218a0f
......@@ -218,6 +218,13 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
if( a52.b_eac3 && a52.eac3.strmtyp != EAC3_STRMTYP_INDEPENDENT )
{
/* Use the channel configuration of the independent stream */
if( !p_sys->frame.i_blocks_per_sync_frame )
{
/* Not synced on main stream yet */
block_SkipByte( &p_sys->bytestream );
p_sys->i_state = STATE_NOSYNC;
break;
}
p_sys->frame.i_samples = a52.i_samples;
p_sys->frame.i_size = a52.i_size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment