From 98fcac9a9db0fe373e9900919507a88d465d7168 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Thu, 15 Aug 2013 21:13:26 +0200 Subject: [PATCH] [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 --- .../cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp index 7d4922788d966..805ee221e4bd3 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp @@ -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 ) {