aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2015-10-03 10:37:04 +0200
committerMartijn Kaijser <martijn@xbmc.org>2015-10-03 10:37:04 +0200
commitab1154e356e5b3541b3884d59db7d96a348d0e58 (patch)
treeea42351c49f43d4e050174492a72372852de6256
parent6bbcb627c11c1cb867c636ea80de390eac8cb5b6 (diff)
parent4cf56e8343bc4a9ff5970b0eac362e4b2949d3f3 (diff)
Merge pull request #8163 from stefansaraev/8137-isengard
dvdplayer: fix non DVB subs after 5c0d694fa769f311bc5e14dec04c260267a56b79
-rw-r--r--xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
index 06f81c895c..dca4bdf0d1 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp
@@ -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();