[vlc-devel] [PATCH 4/4] Add rav1e encoder module
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jul 21 14:19:21 CEST 2020
On 2020-07-21 13:59, Francois Cartegnie wrote:
> Le 21/07/2020 à 11:34, rustyc a écrit :
>> +
>> + memcpy(p_block->p_buffer, pkt->data, pkt->len);
>> + p_block->i_dts = p_block->i_pts = date_Get(&sys->date);
>> + p_block->i_length =
>> + vlc_tick_from_samples(enc->fmt_in.video.i_frame_rate_base,
>> + enc->fmt_in.video.i_frame_rate);
>> + date_Increment(&sys->date, 1);
>> +
>> + if (pkt->frame_type == RA_FRAME_TYPE_KEY)
>> + p_block->i_flags |= BLOCK_FLAG_TYPE_I;
>> + block_ChainAppend(&p_out, p_block);
>> + rav1e_packet_unref(pkt);
>
> Using date_t to avoid rounding errors and vlc_tick_from_samples to
> introduce some ?
The code looks correct to me.
More information about the vlc-devel
mailing list