[vlc-commits] d3d11va: fix VideoProcessor creation when the frame rate is unknown

Steve Lhomme git at videolan.org
Sun Oct 9 10:46:23 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Sep  6 08:56:52 2016 +0200| [7c0f10f9a67fe66e28be3f71054d22cde48ac354] | committer: Jean-Baptiste Kempf

d3d11va: fix VideoProcessor creation when the frame rate is unknown

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c0f10f9a67fe66e28be3f71054d22cde48ac354
---

 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 5d36830..9f0aea8 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -756,7 +756,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,



More information about the vlc-commits mailing list