decoder: h264: fix initialization of RefPicLists for multiple slices.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sat, 26 Apr 2014 18:21:46 +0000 (20:21 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sat, 26 Apr 2014 18:21:46 +0000 (20:21 +0200)
commitfac59d6fcfed35ea0ff400ec33d0001172057c06
treeb288096f20d8a3c9e239e9ac4e7f512716456d54
parent3a6f6f97ab956709d2dfa1b12ea221ecabdcb1ce
decoder: h264: fix initialization of RefPicLists for multiple slices.

The initialization of reference picture lists (8.2.4.2) applies to all
slices. So, the RefPicList0/1 lists need to be constructed prior to
each slice submission to the HW decoder.

This fixes decoding of video sequences where frames are encoded with
multiple slices of different types, e.g. 4 slices in this order I, P,
I, and P. More precisely, CABAST3_Sony_E and CABASTBR3_Sony_B.

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