]> git.sesse.net Git - ffmpeg/commit
vaapi_h264: Fix bit offset of slice data.
authorMark Thompson <sw@jkqxz.net>
Sat, 2 Apr 2016 15:48:53 +0000 (16:48 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 2 Apr 2016 15:56:49 +0000 (17:56 +0200)
commitb3051a460cf02a5b86ff0d1e14abba23ea55ff6d
treeb5683c99730e3b81b8cf54b26ac815f63a0064b5
parent33275a0de05e9bc321f2537a2a67921fab81624f
vaapi_h264: Fix bit offset of slice data.

Commit ca2f19b9cc37be509d85f05c8f902860475905f8 modified the meaning of
H264SliceContext.gb: it is now initialised at the start of the NAL unit
header, rather than at the start of the slice header.  The VAAPI slice
decoder uses the offset after parsing to determine the offset of the
slice data in the bitstream, so with the changed meaning we no longer
need to add the extra byte to account for the NAL unit header because
it is now included directly.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/vaapi_h264.c