[vlc-devel] [PATCH 1/2] display: allow the vout to expand the decoder pool dimensions

Steve Lhomme robux4 at gmail.com
Wed Mar 29 08:30:53 CEST 2017


On Tue, Mar 28, 2017 at 6:05 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le tiistaina 28. maaliskuuta 2017, 10.23.38 EEST Steve Lhomme a écrit :
>> With DXVA we need to align to 128 with some codecs and the decoder doesn't
>> tell us.
>> ---
>>  src/video_output/display.c | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/src/video_output/display.c b/src/video_output/display.c
>> index 310f208b4c..098e1e8a86 100644
>> --- a/src/video_output/display.c
>> +++ b/src/video_output/display.c
>> @@ -444,6 +444,11 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
>>          (v_src.i_chroma == VLC_CODEC_J444 && v_dst.i_chroma ==
>> VLC_CODEC_I444)) v_dst_cmp.i_chroma = v_src.i_chroma;
>>
>> +    if (v_dst_cmp.i_width > v_src.i_width)
>> +        v_dst_cmp.i_width = v_src.i_width;
>> +    if (v_dst_cmp.i_height > v_src.i_height)
>> +        v_dst_cmp.i_height = v_src.i_height;
>> +
>
> If this is a joke, it is not funny.

The documentation says it's OK.

>>      const bool convert = memcmp(&v_src, &v_dst_cmp, sizeof(v_src)) != 0;
>>      if (!convert)
>>          return 0;
>
>
> --
> 雷米‧德尼-库尔蒙
> https://www.remlab.net/
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list