decoder: h264: fix marking of non-reference picture into DPB.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 25 Jun 2014 20:26:32 +0000 (22:26 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 25 Jun 2014 20:38:35 +0000 (22:38 +0200)
commitbea0d07042862be1fb741647bb5a7a3b8b014bce
treeeca11b0b2e0606d97568914121ff4083b9ad7f76
parent8db72147c7737eecfe3cdc57940840b45fd3261f
decoder: h264: fix marking of non-reference picture into DPB.

Fix search for a picture in the DPB that has a lower POC value than
the current picture. The dpb_find_lowest_poc() function will return
a picture with the lowest POC in DPB and that is marked as "needed
for output", but an additional check against the actual POC value
of the current picture is needed.

This is a regression from 1c46990.

https://bugzilla.gnome.org/show_bug.cgi?id=732130
gst-libs/gst/vaapi/gstvaapidecoder_h264.c