d3d11_decoder: add the RGB mask if needed

That's what the D3D11 video output expects.
This commit is contained in:
Steve Lhomme 2023-02-02 17:29:39 +01:00 committed by Jean-Baptiste Kempf
parent ae5c56a405
commit 480884bea2
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ static int DecodeFrame( decoder_t *p_dec, block_t *p_block )
block_Release( p_block );
return VLC_EGENERIC;
}
DxgiFormatMask( p_sys->output_format->formatTexture, &p_dec->fmt_out.video );
if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) )
{
@ -283,6 +284,7 @@ int D3D11OpenBlockDecoder( vlc_object_t *obj )
vlc_decoder_device_Release(dec_dev);
return VLC_EGENERIC;
}
DxgiFormatMask( p_sys->output_format->formatTexture, &p_dec->fmt_out.video );
if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) )
{