diff options
author | afl1 <afl2001@gmail.com> | 2019-03-17 20:59:04 +0100 |
---|---|---|
committer | kszaq <kszaquitto@gmail.com> | 2019-04-08 11:58:37 +0200 |
commit | 6f989c4ea8ea4491cf82031b6b92662938e38e28 (patch) | |
tree | 9e72e69d53b45c0e0f988ce8299a3cf8534a94c5 | |
parent | 70a6312dd38a472eaed0a1252e13812559090ca4 (diff) |
DVDVideoCodecAmlogic: fix div by 0 in FrameRateTracking
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp index 9f21c80de3..14e11b362b 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp @@ -435,7 +435,8 @@ void CDVDVideoCodecAmlogic::FrameRateTracking(uint8_t *pData, int iSize, double { // probe demux for sequence_header_code NAL and // decode aspect ratio and frame rate. - if (CBitstreamConverter::mpeg2_sequence_header(pData, iSize, m_mpeg2_sequence)) + if (CBitstreamConverter::mpeg2_sequence_header(pData, iSize, m_mpeg2_sequence) && + (m_mpeg2_sequence->fps_rate > 0) && (m_mpeg2_sequence->fps_scale > 0)) { m_mpeg2_sequence_pts = pts; if (m_mpeg2_sequence_pts == DVD_NOPTS_VALUE) |