1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

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

This commit is contained in:
Steve Lhomme 2018-05-02 17:45:10 +02:00
parent fe499f7cef
commit 593d36fd0d

View File

@ -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 );