Patch "[media] coda: fix first encoded frame payload" has been added to the 4.5-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
[media] coda: fix first encoded frame payload
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
coda-fix-first-encoded-frame-payload.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
74dc385cb450089b28c28be2c8a0baca296b95f9Mon Sep 17 00:00:00 2001
From: Philipp Zabel <[email protected]>
Date: Mon, 4 Jan 2016 17:30:09 -0200
Subject: [media] coda: fix first encoded frame payload
From: Philipp Zabel <[email protected]>
commit 74dc385cb450089b28c28be2c8a0baca296b95f9 upstream.
During the recent vb2_buffer restructuring, the calculation of the buffer payload reported to userspace was accidentally broken for the first encoded frame, counting only the length of the headers. This patch re-adds the length of the actual frame data.
--- drivers/media/platform/coda/coda-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/coda/coda-bit.c +1 -1
@@ -1342,7 +1342,7 @@ static void coda_finish_encode(struct co/* Calculate bytesused field */ if (dst_buf->sequence ==0 ) { -vb2_set_plane_payload (&dst_buf->vb2_buf,0 , +vb2_set_plane_payload (&dst_buf->vb2_buf,0 , wr_ptr - start_ptr + ctx->vpu_header_size[0 ] + ctx->vpu_header_size[1 ] + ctx->vpu_header_size[2 ]);
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/coda-fix-first-encoded-frame-payload.patch