Skip to content

Commit bc406ee

Browse files
committed
vo_gpu_next: also map pl_bit_encoding for hwdec formats
Needed to fix e.g. yuv422p10le output from Vulkan hwdec (e.g. ProRes Vulkan decoder). See-Also: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20852
1 parent 905f5c5 commit bc406ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

video/out/vo_gpu_next.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ static bool map_frame(pl_gpu gpu, pl_tex *tex, const struct pl_source_frame *src
692692
frame->acquire = hwdec_acquire;
693693
frame->release = hwdec_release;
694694
frame->num_planes = desc.num_planes;
695+
frame->repr.bits = plane_bits_from_imgfmt(par.imgfmt);
695696
for (int n = 0; n < frame->num_planes; n++) {
696697
struct pl_plane *plane = &frame->planes[n];
697698
int *map = plane->component_mapping;

0 commit comments

Comments
 (0)