Commit 2a4c5181 authored by Thomas Guillem's avatar Thomas Guillem

packetizer: mlp: fix endless loop (again)

The "(Not useful if we went through NEXT_SYNC)" assumption is false.  If the
input is not packetized (like from demux/mpeg/es.c), nothing assure that we
have enough data.

see 11513192
parent ce72ce94
......@@ -385,12 +385,11 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
block_SkipByte( &p_sys->bytestream );
p_sys->i_state = STATE_SEND_DATA;
p_sys->i_state = STATE_GET_DATA;
/* Make sure we have enough data.
* (Not useful if we went through NEXT_SYNC) */
/* Make sure we have enough data. */
if( block_WaitBytes( &p_sys->bytestream, p_sys->i_frame_size ) )
/* Need more data */
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