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:
parent
fe499f7cef
commit
593d36fd0d
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user