decoder: h264: properly handle Prefix NAL units.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 31 Oct 2013 11:32:55 +0000 (19:32 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 21 May 2014 17:59:52 +0000 (19:59 +0200)
commite4166f5a919fe90839333d2dda1138f44af33ffe
tree833c9efde04117962dabd14a72e67ad9374de61b
parent79118904a07031acef6116df2885ec30dcbad231
decoder: h264: properly handle Prefix NAL units.

Always cache the previous NAL unit so that we could check whether
there is a Prefix NAL unit immediately preceding the current slice
or IDR NAL unit. In that case, the NAL unit metadata is copied into
the current NAL unit. Otherwise, some default values are inferred,
tentatively. e.g. view_id shall be set to 0 and inter_view_flag to 1.

[infer default values for slice if previous NAL was not a Prefix]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/vaapi/gstvaapidecoder_h264.c