decoder: h264: fix closure of "other-field" gap.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 6 Jul 2015 12:38:26 +0000 (14:38 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 20 Jul 2015 13:25:46 +0000 (15:25 +0200)
commitd4ccae8398c4971c9400473b1a8a1308f7ea1ea8
treee84197022e6b6a79d506fa26f17e19b7f22e54fb
parent80a7ab09591474d20e158f774d50ce1e5c32d35e
decoder: h264: fix closure of "other-field" gap.

When a dummy "other-field" is inserted, it is assumed to inherit the
reference flags from the first field, and the sliding window decoded
reference picture marking process is also executed so that corrupted
frames are moved out as early as possible.

While doing so, we also try to output frames that now contain a single
valid field picture, prior to inserting any other picture into the DPB.
Note: this may be superfluous currently based on the fact that dpb_add()
combines the two most recent pairable fields, but this process would be
further simplified later on.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c