[media] media: coda: Fix H.264 header alignment
authorJavier Martin <javier.martin@vista-silicon.com>
Mon, 29 Oct 2012 08:20:29 +0000 (05:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 18:39:03 +0000 (16:39 -0200)
commit3f3f5c7f63dec5d6413075116cd6beee1e888d7b
treea35e0018fe27b566d03ad98d6c8eed9df788b8ce
parentbbe2a1d32f40c01ca1a7e7795e20ca06f87ffc9b
[media] media: coda: Fix H.264 header alignment

Length of H.264 headers is variable and thus it might not be
aligned for the coda to append the encoded frame. This causes
the first frame to overwrite part of the H.264 PPS.
In order to solve that, a filler NAL must be added between
the headers and the first frame to preserve alignment.

[mchehab@redhat.com: Fix a few CodingStyle issues]
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c