mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add PR2378
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
6a6334f2fd
commit
004765ff88
53
packages/mediacenter/xbmc/patches/xbmc-990.26-PR2378.patch
Normal file
53
packages/mediacenter/xbmc/patches/xbmc-990.26-PR2378.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From 907f5086e76b0b6d0211c9bbd9da6c6fb54e891b Mon Sep 17 00:00:00 2001
|
||||
From: Juan Font <juanfontalonso@gmail.com>
|
||||
Date: Wed, 6 Mar 2013 09:50:15 +0100
|
||||
Subject: [PATCH 1/2] Avoid fps detection when probing the format if we will
|
||||
trust codec fps during playback.
|
||||
|
||||
---
|
||||
xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
index 7d4e35b..4b62d75 100644
|
||||
--- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
+++ b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
@@ -425,6 +425,9 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput)
|
||||
|
||||
// set the interrupt callback, appeared in libavformat 53.15.0
|
||||
m_pFormatContext->interrupt_callback = int_cb;
|
||||
+
|
||||
+ // Avoid detecting framerate if advancedsettings.xml says so
|
||||
+ m_pFormatContext->fps_probe_size = (!g_advancedSettings.m_videoFpsDetect) ? 0 : -1;
|
||||
|
||||
// analyse very short to speed up mjpeg playback start
|
||||
if (iformat && (strcmp(iformat->name, "mjpeg") == 0) && m_ioContext->seekable == 0)
|
||||
--
|
||||
1.7.10
|
||||
|
||||
|
||||
From e2966a346140fcd7a9742f17bfd7710bffbe1066 Mon Sep 17 00:00:00 2001
|
||||
From: Juan Font <juanfontalonso@gmail.com>
|
||||
Date: Wed, 6 Mar 2013 10:33:32 +0100
|
||||
Subject: [PATCH 2/2] Improved code legibility.
|
||||
|
||||
---
|
||||
xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
index 4b62d75..e84290d 100644
|
||||
--- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
+++ b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
|
||||
@@ -427,7 +427,7 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput)
|
||||
m_pFormatContext->interrupt_callback = int_cb;
|
||||
|
||||
// Avoid detecting framerate if advancedsettings.xml says so
|
||||
- m_pFormatContext->fps_probe_size = (!g_advancedSettings.m_videoFpsDetect) ? 0 : -1;
|
||||
+ m_pFormatContext->fps_probe_size = (g_advancedSettings.m_videoFpsDetect == 0) ? 0 : -1;
|
||||
|
||||
// analyse very short to speed up mjpeg playback start
|
||||
if (iformat && (strcmp(iformat->name, "mjpeg") == 0) && m_ioContext->seekable == 0)
|
||||
--
|
||||
1.7.10
|
||||
|
Loading…
x
Reference in New Issue
Block a user