codecparsers: h264: record number of emulation prevention bytes in slice_header().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 2 Mar 2012 10:45:41 +0000 (11:45 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 3 Mar 2012 15:53:46 +0000 (15:53 +0000)
commit5c9f7900759d3ea2ae740e4dd04079381678fed8
tree42b23cf2d429ef3b10cff42fcf2a83c93ddc55bb
parent0bb5a01639079e30f7236b932ad11d4a48cda47c
codecparsers: h264: record number of emulation prevention bytes in slice_header().

Some hardware video decode acceleration API (VA-API, DXVA) require
a bit count to the first macroblock, minus the number of emulation
prevention bytes. So, instead of having the consumer of the library
scan the slice_header() again, just record that number while parsing.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=671203
gst-libs/gst/codecparsers/gsth264parser.c
gst-libs/gst/codecparsers/gsth264parser.h