Skip to content

Commit

Permalink
DVDVideoCodecDRMPRIME: Always use best_effort_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
jernejsk authored and popcornmix committed Apr 1, 2020
1 parent 4ca6d9c commit e003491
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -356,9 +356,7 @@ void CDVDVideoCodecDRMPRIME::SetPictureParams(VideoPicture* pVideoPicture)
pVideoPicture->iFlags |= m_pFrame->interlaced_frame ? DVP_FLAG_INTERLACED : 0;
pVideoPicture->iFlags |= m_pFrame->top_field_first ? DVP_FLAG_TOP_FIELD_FIRST : 0;

int64_t pts = m_pFrame->pts;
if (pts == AV_NOPTS_VALUE)
pts = m_pFrame->best_effort_timestamp;
int64_t pts = m_pFrame->best_effort_timestamp;
pVideoPicture->pts = (pts == AV_NOPTS_VALUE)
? DVD_NOPTS_VALUE
: static_cast<double>(pts) * DVD_TIME_BASE / AV_TIME_BASE;
Expand Down

0 comments on commit e003491

Please sign in to comment.