Commit 2d7ee16c authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

WIP: avcodec: forward PCR

parent 1fbfa5b7
Pipeline #46466 failed with stage
in 85 minutes and 17 seconds
......@@ -55,6 +55,7 @@ struct frame_info_s
{
bool b_eos;
bool b_display;
vlc_tick_t pcr;
};
/*****************************************************************************
......@@ -1023,6 +1024,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t **pp_block )
struct frame_info_s *p_frame_info = &p_sys->frame_info[p_context->reordered_opaque % FRAME_INFO_DEPTH];
p_frame_info->b_eos = p_block && (p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE);
p_frame_info->b_display = b_need_output_picture;
p_frame_info->pcr = p_block ? p_block->i_original_pcr : VLC_TICK_INVALID;
p_context->reordered_opaque++;
i_used = ret != AVERROR(EAGAIN) ? pkt.size : 0;
......@@ -1208,6 +1210,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_pic->i_nb_fields = 2 + frame->repeat_pict;
p_pic->b_progressive = !frame->interlaced_frame;
p_pic->b_top_field_first = frame->top_field_first;
p_pic->original_pcr = p_frame_info->pcr;
if (DecodeSidedata(p_dec, frame, p_pic))
i_pts = VLC_TICK_INVALID;
......
Supports Markdown
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