[Mesa-dev] [PATCH] st/vdpau: Fix segmentation fault
Christian König
deathsimple at vodafone.de
Mon Mar 17 01:24:15 PDT 2014
Am 17.03.2014 03:55, schrieb Kusanagi Kouichi:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75699
> Signed-off-by: Kusanagi Kouichi <slash at ac.auone-net.jp>
> ---
> src/gallium/state_trackers/vdpau/surface.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c
> index 0d9f2b0..8bfe1a1 100644
> --- a/src/gallium/state_trackers/vdpau/surface.c
> +++ b/src/gallium/state_trackers/vdpau/surface.c
> @@ -431,7 +431,7 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
>
> pipe->transfer_inline_write(pipe, sv->texture, 0,
> PIPE_TRANSFER_WRITE, &dst_box,
> - source_data[i] + source_pitches[i] * j,
> + source_data[i],
That's not correct. This way you just copy the first field to both the
top and the bottom field.
Christian.
> source_pitches[i] * sv->texture->array_size,
> 0);
> }
More information about the mesa-dev
mailing list