Skip to content
This repository
Browse code

[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 authored August 15, 2013
2  xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
@@ -63,6 +63,8 @@ bool CDVDOverlayCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &optio
63 63
   m_pCodecContext->codec_tag = hints.codec_tag;
64 64
   m_pCodecContext->time_base.num = 1;
65 65
   m_pCodecContext->time_base.den = DVD_TIME_BASE;
  66
+  m_pCodecContext->pkt_timebase.num = 1;
  67
+  m_pCodecContext->pkt_timebase.den = DVD_TIME_BASE;
66 68
 
67 69
   if( hints.extradata && hints.extrasize > 0 )
68 70
   {

0 notes on commit 98fcac9

Please sign in to comment.
Something went wrong with that request. Please try again.