Skip to content

Commit

Permalink
These codec IDs are not in libav 0.8.6, so just disable the hinting.
Browse files Browse the repository at this point in the history
The change in OMXReader.cpp is likely important, but... hack time.
Something to fix for later.
  • Loading branch information
gstein committed Apr 17, 2013
1 parent 80dae18 commit 035c58a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMXOverlayCodecText.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions OMXReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 035c58a

Please sign in to comment.