Skip to content

Commit

Permalink
[dvdplayer] fixes PGS subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingRat committed Apr 30, 2013
1 parent 977a4ba commit 0066076
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -186,7 +186,8 @@ int CDVDOverlayCodecFFmpeg::Decode(DemuxPacket *pPacket)
// for pgs subtitles the packet pts of the end_segments are wrong
// instead use the subtitle pts to calc the offset here
// see http://git.videolan.org/?p=ffmpeg.git;a=commit;h=2939e258f9d1fff89b3b68536beb931b54611585
if (m_Subtitle.pts != DVD_NOPTS_VALUE)

if (m_Subtitle.pts != AV_NOPTS_VALUE && pPacket->pts != DVD_NOPTS_VALUE)
{
pts_offset = m_Subtitle.pts - pPacket->pts ;
}
Expand Down

0 comments on commit 0066076

Please sign in to comment.