Skip to content

Commit

Permalink
Merge pull request xbmc#8163 from stefansaraev/8137-isengard
Browse files Browse the repository at this point in the history
dvdplayer: fix non DVB subs after  5c0d694
  • Loading branch information
MartijnKaijser committed Oct 3, 2015
2 parents 6bbcb62 + 4cf56e8 commit ab1154e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,17 @@ CDVDOverlay* CDVDOverlayCodecFFmpeg::GetOverlay()
m_height = m_pCodecContext->height;
m_width = m_pCodecContext->width;

// ETSI EN 300 743 V1.3.1
// 5.3.1
// Absence of a DDS in a stream implies that the stream is coded in accordance with EN 300 743 (V1.2.1) [5] and that a
// display width of 720 pixels and a display height of 576 lines may be assumed.
if (!m_height && !m_width)
if (m_pCodecContext->codec_id == AV_CODEC_ID_DVB_SUBTITLE)
{
m_width = 720;
m_height = 576;
// ETSI EN 300 743 V1.3.1
// 5.3.1
// Absence of a DDS in a stream implies that the stream is coded in accordance with EN 300 743 (V1.2.1) [5] and that a
// display width of 720 pixels and a display height of 576 lines may be assumed.
if (!m_height && !m_width)
{
m_width = 720;
m_height = 576;
}
}

RENDER_STEREO_MODE render_stereo_mode = g_graphicsContext.GetStereoMode();
Expand Down

0 comments on commit ab1154e

Please sign in to comment.