]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] coda: pad first h.264 buffer to 512 bytes
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 3 Mar 2017 12:12:49 +0000 (09:12 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 13:06:26 +0000 (10:06 -0300)
commit0eef89403ece8879c5159a5b70e95b3a853921f2
treedb37e258da94b351587d87aa2f0e0367d809fa18
parent331e7860f3da430500559c665bd0ea63260fc9dc
[media] coda: pad first h.264 buffer to 512 bytes

The bitstream reader needs 512 bytes ready to read to examine the
headers in the first frame. If that frame is too small, prepend it
with a filler NAL.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-h264.c
drivers/media/platform/coda/coda.h