[vlc-commits] [Git][videolan/vlc][master] directx_va: don't overwrite frame rate with empty data
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 30 10:24:19 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b62db3c6 by Steve Lhomme at 2024-09-30T09:58:26+00:00
directx_va: don't overwrite frame rate with empty data
We only allow overriding the source values if they make sense
and if the frame rate wasn't already settled.
- - - - -
1 changed file:
- modules/codec/avcodec/directx_va.c
Changes:
=====================================
modules/codec/avcodec/directx_va.c
=====================================
@@ -398,8 +398,12 @@ const directx_va_mode_t *directx_va_Setup(vlc_va_t *va, const directx_sys_t *dx_
fmt_out->i_height = surface_height;
/* FIXME transmit a video_format_t by VaSetup directly */
- fmt_out->i_frame_rate = avctx->framerate.num;
- fmt_out->i_frame_rate_base = avctx->framerate.den;
+ if (avctx->framerate.num && avctx->framerate.den &&
+ (!fmt_out->i_frame_rate || !fmt_out->i_frame_rate_base))
+ {
+ fmt_out->i_frame_rate = avctx->framerate.num;
+ fmt_out->i_frame_rate_base = avctx->framerate.den;
+ }
/* */
const directx_va_mode_t *res = FindVideoServiceConversion(va, dx_sys, fmt, fmt_out, avctx, desc);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b62db3c624dd551c745f72617dce746a46175d00
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b62db3c624dd551c745f72617dce746a46175d00
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list