Skip to content

Commit

Permalink
vpu: fb_bufferpool: fixed incorrect memcpy calls in set_buffer_conten…
Browse files Browse the repository at this point in the history
…ts()

This caused the output to have a greenish tint

Signed-off-by: Carlos Rafael Giani <[email protected]>
  • Loading branch information
dv1 committed Oct 8, 2013
1 parent 096fe9a commit 78a18fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vpu/fb_buffer_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ gboolean gst_imx_vpu_set_buffer_contents(GstBuffer *buffer, GstImxVpuFramebuffer
memory = gst_allocator_alloc(NULL, framebuffers->total_size, NULL);
gst_memory_map(memory, &map_info, GST_MAP_WRITE);
memcpy(map_info.data, framebuffer->pbufVirtY, framebuffers->y_size);
memcpy(map_info.data, framebuffer->pbufVirtCb, framebuffers->u_size);
memcpy(map_info.data, framebuffer->pbufVirtCr, framebuffers->v_size);
memcpy(map_info.data + framebuffers->y_size, framebuffer->pbufVirtCb, framebuffers->u_size);
memcpy(map_info.data + framebuffers->y_size + framebuffers->u_size, framebuffer->pbufVirtCr, framebuffers->v_size);
gst_memory_unmap(memory, &map_info);

vpu_meta->framebuffer = NULL;
Expand Down

0 comments on commit 78a18fa

Please sign in to comment.