diff --git a/OMXOverlayCodecText.cpp b/OMXOverlayCodecText.cpp index dc49de22..6f7cc968 100644 --- a/OMXOverlayCodecText.cpp +++ b/OMXOverlayCodecText.cpp @@ -41,9 +41,11 @@ COMXOverlayCodecText::~COMXOverlayCodecText() bool COMXOverlayCodecText::Open(COMXStreamInfo &hints) { +#if 0 m_bIsSSA = (hints.codec == AV_CODEC_ID_SSA); if(hints.codec == AV_CODEC_ID_SUBRIP || hints.codec == AV_CODEC_ID_SSA) return true; +#endif return false; } diff --git a/OMXReader.cpp b/OMXReader.cpp index d9343d04..d101d9c1 100644 --- a/OMXReader.cpp +++ b/OMXReader.cpp @@ -495,9 +495,11 @@ OMXPacket *OMXReader::Read() else pkt.pts = AV_NOPTS_VALUE; } +#if 0 // we need to get duration slightly different for matroska embedded text subtitels if(m_bMatroska && pStream->codec->codec_id == AV_CODEC_ID_SUBRIP && pkt.convergence_duration != 0) pkt.duration = pkt.convergence_duration; +#endif if(m_bAVI && pStream->codec && pStream->codec->codec_type == AVMEDIA_TYPE_VIDEO) {