Commit 39d0b322 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

avformat mux: use a variable

parent 7f16c150
......@@ -441,6 +441,7 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
static int IOWrite( void *opaque, uint8_t *buf, int buf_size )
{
sout_mux_t *p_mux = opaque;
sout_mux_sys_t *p_sys = p_mux->p_sys;
int i_ret;
#ifdef AVFORMAT_DEBUG
......@@ -450,13 +451,13 @@ static int IOWrite( void *opaque, uint8_t *buf, int buf_size )
block_t *p_buf = block_Alloc( buf_size );
if( buf_size > 0 ) memcpy( p_buf->p_buffer, buf, buf_size );
if( p_mux->p_sys->b_write_header )
if( p_sys->b_write_header )
p_buf->i_flags |= BLOCK_FLAG_HEADER;
if( p_mux->p_sys->b_write_keyframe )
if( p_sys->b_write_keyframe )
{
p_buf->i_flags |= BLOCK_FLAG_TYPE_I;
p_mux->p_sys->b_write_keyframe = false;
p_sys->b_write_keyframe = false;
}
i_ret = sout_AccessOutWrite( p_mux->p_access, p_buf );
......
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