[FFmpeg-devel] [PATCH] vulkan_decode: use coded_width/height instead of the non-coded width and h

Lynne dev at lynne.ee
Wed Oct 25 02:38:59 EEST 2023


Oct 24, 2023, 21:05 by anton at khirnov.net:

> Quoting Lynne (2023-10-24 06:37:03)
>
>> Fixes several samples.
>>
>> There may be issues with cropping, but so far, I have not found any
>> in my samples set.
>>
>
> Frames ctx dimensions should be the allocated ones, cropping does not
> enter into this.
>

Correct, that's what I meant to say.

The sample in question is https://streams.videolan.org/issues/19938/20000_20180305-15.04.59.ts
Which is coded as 1920x1080, meant to be rendered at 1440x1080 with cropping,
or 1680x1080 before cropping. Currently, the created DPB is 1440x1080, which results
in the image being decoded incorrectly, as the decoder overwrites output memory.
This commit fixes this.

Added this to the commit description locally.


More information about the ffmpeg-devel mailing list