h264: fix slice_data_bit_offset calculation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 2 Mar 2012 12:41:16 +0000 (13:41 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 2 Mar 2012 12:41:16 +0000 (13:41 +0100)
commit63e29adbf57bdc2b6f72eddd9690c2dc4c6e0b52
tree8ebc023571f293e324178a81e24198d0e9c0ca1d
parentc979d51da6a52ab9f67dfe91ed8b2dfbbbe38c15
h264: fix slice_data_bit_offset calculation.

Unlike what VA-API documentation defines, the slice_data_bit_offset
represents the offset to the first macroblock in the slice data, minus
any emulation prevention bytes in the slice_header().

This fix copes with binary-only VA drivers that won't be fixed any
time soon. Besides, this aligns with the current FFmpeg behaviour
that was based on those proprietary drivers implementing the API
incorrectly.
configure.ac
gst-libs/gst/vaapi/gstvaapidecoder_h264.c