Commit 3ae14a60 authored by Francois Cartegnie's avatar Francois Cartegnie

encoders: shroedinger: fix invalid write

parent 67b7e746
...@@ -1553,7 +1553,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic ) ...@@ -1553,7 +1553,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic )
return NULL; return NULL;
memcpy( p_enc->fmt_out.p_extra, p_block->p_buffer, len ); memcpy( p_enc->fmt_out.p_extra, p_block->p_buffer, len );
memcpy( (uint8_t*)p_enc->fmt_out.p_extra + len, eos, sizeof( eos ) ); memcpy( (uint8_t*)p_enc->fmt_out.p_extra + len, eos, sizeof( eos ) );
SetDWBE( (uint8_t*)p_enc->fmt_out.p_extra + len + 10, len ); SetDWBE( (uint8_t*)p_enc->fmt_out.p_extra + len + sizeof(eos) - 4, len );
p_enc->fmt_out.i_extra = len + sizeof( eos ); p_enc->fmt_out.i_extra = len + sizeof( eos );
} }
} }
......
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