Commit 593d36fd authored by Steve Lhomme's avatar Steve Lhomme

avcodec: do not call the same code twice in some ifdef condition

parent fe499f7c
......@@ -1142,12 +1142,12 @@ static int DecodeBlock( decoder_t *p_dec, block_t **pp_block )
/* Compute the PTS */
#ifdef FF_API_PKT_PTS
mtime_t i_pts = frame->pts;
if (i_pts == AV_NOPTS_VALUE )
i_pts = frame->pkt_dts;
#else
mtime_t i_pts = frame->pkt_pts;
#endif
if (i_pts == AV_NOPTS_VALUE )
i_pts = frame->pkt_dts;
if( i_pts == AV_NOPTS_VALUE )
i_pts = date_Get( &p_sys->pts );
......
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