Commit d405f2ca authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264: actually add that sei in first block

parent b852af55
...@@ -1373,7 +1373,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict ) ...@@ -1373,7 +1373,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
if( !p_block ) return NULL; if( !p_block ) return NULL;
unsigned int i_offset = 0; unsigned int i_offset = 0;
if( unlikely( p_sys->i_sei_size && ( i_nal > 1 ) ) ) if( unlikely( p_sys->i_sei_size ) )
{ {
/* insert x264 headers SEI nal into the first picture block at the start */ /* insert x264 headers SEI nal into the first picture block at the start */
memcpy( p_block->p_buffer, p_sys->p_sei, p_sys->i_sei_size ); memcpy( p_block->p_buffer, p_sys->p_sei, p_sys->i_sei_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