Skip to content

Commit

Permalink
fixed: still frames at the start of a VTS in dvd could end up not sho…
Browse files Browse the repository at this point in the history
…wing

This occured due to a change in behavior in updated ffmpeg. Old code would
return EOF once after a VTS change to trigger demuxer flush, however
updated ffmpeg will read multiple times causing demuxer reset actions
to get executed after actual data having been processed by demuxer.
  • Loading branch information
elupus committed Apr 6, 2012
1 parent 180d20b commit 4979418
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -419,9 +419,12 @@ int CDVDInputStreamNavigator::ProcessBlock(BYTE* dest_buffer, int* read)
iNavresult = NAVRESULT_HOLD;
}
else
{
iNavresult = m_pDVDPlayer->OnDVDNavResult(buf, DVDNAV_VTS_CHANGE);

m_bInMenu = (0 == m_dll.dvdnav_is_domain_vts(m_dvdnav));
m_holdmode = HOLDMODE_HELD;
m_lastevent = DVDNAV_NOP;
m_bInMenu = (0 == m_dll.dvdnav_is_domain_vts(m_dvdnav));
}
}
break;

Expand Down

0 comments on commit 4979418

Please sign in to comment.