vima: switch to init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
h264: always copy block_offset in thread update

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264: always copy linesizes in thread update

Fixes inconsistencies in context

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
h264: add assert to check that block_offset is consistent.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix detection of struct v4l2_frmsize_discrete.

It was always detected successfully.
latmenc: Check for LOAS sync word

Write the packet unaltered if found.

Fixes ticket #1917

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>