mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 06:57:50 +00:00
Allwinner: kodi: Fix deinterlace filter patch
This commit is contained in:
parent
b8b2a2cec8
commit
66894bcff8
@ -152,8 +152,8 @@ index 2b334c95d47a..1e5624e7af50 100644
|
|||||||
+ const AVFilter* outFilter = avfilter_get_by_name("buffersink");
|
+ const AVFilter* outFilter = avfilter_get_by_name("buffersink");
|
||||||
+ enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_DRM_PRIME, AV_PIX_FMT_NONE };
|
+ enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_DRM_PRIME, AV_PIX_FMT_NONE };
|
||||||
+
|
+
|
||||||
+ std::string args = StringUtils::Format("video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:"
|
+ std::string args = StringUtils::Format("video_size={}x{}:pix_fmt={}:time_base={}/{}:"
|
||||||
+ "pixel_aspect=%d/%d:sws_param=flags=2",
|
+ "pixel_aspect={}/{}",
|
||||||
+ m_pCodecContext->width,
|
+ m_pCodecContext->width,
|
||||||
+ m_pCodecContext->height,
|
+ m_pCodecContext->height,
|
||||||
+ m_pCodecContext->pix_fmt,
|
+ m_pCodecContext->pix_fmt,
|
||||||
@ -273,7 +273,7 @@ index 2b334c95d47a..1e5624e7af50 100644
|
|||||||
+ char* graphDump = avfilter_graph_dump(m_pFilterGraph, nullptr);
|
+ char* graphDump = avfilter_graph_dump(m_pFilterGraph, nullptr);
|
||||||
+ if (graphDump)
|
+ if (graphDump)
|
||||||
+ {
|
+ {
|
||||||
+ CLog::Log(LOGDEBUG, "CDVDVideoCodecDRMPRIME::FilterOpen - Final filter graph:\n%s",
|
+ CLog::Log(LOGDEBUG, "CDVDVideoCodecDRMPRIME::FilterOpen - Final filter graph:\n{}",
|
||||||
+ graphDump);
|
+ graphDump);
|
||||||
+ av_freep(&graphDump);
|
+ av_freep(&graphDump);
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user