[vlc-devel] [PATCH 1/8] d3d11va: fix VideoProcessor creation when the frame rate is unknown

Steve Lhomme robux4 at videolabs.io
Tue Sep 6 11:52:33 CEST 2016


---
 modules/codec/avcodec/d3d11va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index f2393d3..913a8b9 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -766,7 +766,7 @@ static bool SetupProcessor(vlc_va_t *va, const video_format_t *fmt)
     D3D11_VIDEO_PROCESSOR_CONTENT_DESC processorDesc = {
         .InputFrameFormat = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE,   /* TODO */
         .InputFrameRate = {
-            .Numerator   = fmt->i_frame_rate,
+            .Numerator   = fmt->i_frame_rate_base > 0 ? fmt->i_frame_rate : 0,
             .Denominator = fmt->i_frame_rate_base,
         },
         .InputWidth   = fmt->i_width,
-- 
2.8.2



More information about the vlc-devel mailing list