h264: set default values for some header fields.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Sat, 5 Jan 2013 10:33:06 +0000 (12:33 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sun, 6 Jan 2013 18:20:15 +0000 (19:20 +0100)
commit0963afce0b8084062848fbb1d74e07ba28afdf6e
tree2f4da8c09c64d4d759bc4af96367192b9c81bada
parentcc769f0c2da8dc7b772c54af22f5dc9f291ef44f
h264: set default values for some header fields.

The SPS, PPS and slice headers are not fully zero-initialized in the
codecparsers/ library. Rather, the standard upstream behaviour is to
initialize only certain syntax elements with some inferred values if
they are not present in the bitstream.

At the gstreamer-vaapi decoder level, we need to further initialize
certain syntax elements with some sensible default values so that to
not complicate VA drivers that just pass those verbatim to the HW,
and also avoid an memset() of the whole decoder unit.

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapidecoder_h264.c