h264: simplify reference picture marking process.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 31 Oct 2012 13:24:09 +0000 (14:24 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 31 Oct 2012 14:05:54 +0000 (15:05 +0100)
commitd180a3a9f60a6205c04a61495f857f0f31692247
tree27246e2b2e30f6ba798d24fa3c85cde3d0767b27
parent3480fcc8d76f928df264e92de9d1efe4a5193390
h264: simplify reference picture marking process.

... to build the short_ref[] and long_ref[] lists from the DPB, instead
of maintaining them separately. This avoids refs/unrefs while making it
possible to generate the list based on the actual picture structure.

This also ensures that the list of generated ReferenceFrames[] actually
matches what reference frames are available in the DPB. i.e. short_ref[]
and long_ref[] entries are implied from the DPB, so there is no risk of
having "dangling" references.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c