mpeg2: don't create sub-buffer for slice data.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 2 Jan 2013 16:23:53 +0000 (17:23 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jan 2013 08:08:19 +0000 (09:08 +0100)
commiteda01ab027351dc10c437050ff3e2dd485ccc2cf
tree96f4ad933a1f59bc233fd47a033b41e9a5952fad
parent4556b1fd4731128a3b63f73e71980fb2812a640b
mpeg2: don't create sub-buffer for slice data.

Avoid creating a GstBuffer for slice data. Rather, directly use the codec
frame input buffer data. This is possible because the codec frame is valid
until end_frame() where we submit the VA buffers for decoding. Anyway, the
slice data buffer is copied into the VA buffer when it is created.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c