mpeg2: include start code into VA slice data buffer.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 24 Aug 2012 16:41:47 +0000 (18:41 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 27 Aug 2012 08:36:51 +0000 (10:36 +0200)
commit1fb8f4791f7d3e734f80b8144353ea0db220a557
tree73061dcfabbf376e4f563151b232fe33ead12cff
parenta8636b4310c9ea8c72b7a5efbc04c43df606b937
mpeg2: include start code into VA slice data buffer.

Integrate the start code prefix in the slice data buffer that is submitted
to the hardware. VA-API specifies that slice_data_offset is the offset to
the first byte of slice data. And, for MPEG-2, slice() data begins with
the slice_start_code. Some VA driver implementations (EMGD) expect this.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c