]> 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)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sun, 8 May 2016 15:46:04 +0000 (16:46 +0100)
commit617cd45ddc9b0fed4e3b4bcb8a51b37fc8565ee8
tree1603b8a3b05f83a3bf65bfeed0607f55f68ad944
parentcaee88d193fe4e066251cb541e360d98b2f152ae
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: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/vaapi_h264.c