Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[pgs/subs] - fix pgs subs vanishing to early by initialising the pkt_…

…timebase which was introduced in ffmpeg bump and which is used internally for calculating the pts of the pgs subs now
  • Loading branch information...
commit 98fcac9a9db0fe373e9900919507a88d465d7168 1 parent ad5e4ab
Memphiz Memphiz authored
2  xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
View
@@ -63,6 +63,8 @@ bool CDVDOverlayCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &optio
m_pCodecContext->codec_tag = hints.codec_tag;
m_pCodecContext->time_base.num = 1;
m_pCodecContext->time_base.den = DVD_TIME_BASE;
+ m_pCodecContext->pkt_timebase.num = 1;
+ m_pCodecContext->pkt_timebase.den = DVD_TIME_BASE;
if( hints.extradata && hints.extrasize > 0 )
{
Please sign in to comment.
Something went wrong with that request. Please try again.