Commit 11513192 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: a52: fix endless loop

On flush, we need to make sure there is enough frame data
available otherwise data is never dequeued and we push only
uninitialized buffer to decoder. (as we do not check
GetBytes's return code)

refs streams/ts/transport_error.ts
parent 1dc200b2
......@@ -227,7 +227,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_block == NULL ) /* drain */
p_sys->i_state = STATE_SEND_DATA;
p_sys->i_state = STATE_GET_DATA;
/* Need more data */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment