We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 977a4ba commit 0066076Copy full SHA for 0066076
xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
@@ -186,7 +186,8 @@ int CDVDOverlayCodecFFmpeg::Decode(DemuxPacket *pPacket)
186
// for pgs subtitles the packet pts of the end_segments are wrong
187
// instead use the subtitle pts to calc the offset here
188
// see http://git.videolan.org/?p=ffmpeg.git;a=commit;h=2939e258f9d1fff89b3b68536beb931b54611585
189
- if (m_Subtitle.pts != DVD_NOPTS_VALUE)
+
190
+ if (m_Subtitle.pts != AV_NOPTS_VALUE && pPacket->pts != DVD_NOPTS_VALUE)
191
{
192
pts_offset = m_Subtitle.pts - pPacket->pts ;
193
}
0 commit comments