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>
Fri, 16 Nov 2012 15:50:30 +0000 (16:50 +0100)
commit1b95cd564ca33a16ebbe4291d3109ae98da4c770
tree0b923c75b3827df104d7a4be79f146549293bf2f
parente93579fdc75d68d9e321255b9e4dd61501fd8793
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