decoder: h264: fix robustness patch for bytestream format.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 4 Feb 2014 17:35:28 +0000 (18:35 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 19 Feb 2014 05:14:12 +0000 (06:14 +0100)
commite52d394b9e1e7124a141cc26675068e6fc2446a9
tree56bb82b70473587b1b5e53054c481b4a9783b77d
parentb024e6940bf1e92e4e8717c61a8ea07f3b3e42b8
decoder: h264: fix robustness patch for bytestream format.

Fix parser and decoder state to sync at the right locations. This is
because we could reset the parser state, while the decoder state was
not copied yet, e.g. when parsing several NAL units from multiple frames
whereas the current frame was not decoded yet.

This is a regression brought in by commit 6fe5496.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c