decoder: h264: fix DPB clear when no decoding actually started.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 19 Jun 2014 15:08:47 +0000 (17:08 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 19 Jun 2014 15:08:47 +0000 (17:08 +0200)
commit8db72147c7737eecfe3cdc57940840b45fd3261f
treebba62cc0bf476a70e0ef490b4325d90b02add15c
parentcb9f98f0d5501f7f700e33bbc969d0ce420c2601
decoder: h264: fix DPB clear when no decoding actually started.

Fix dpb_clear() to clear previous frame buffers only if they actually
exist to begin with. If the decoder bailed out early, e.g. when it
does not support a specific profile, that array of previous frames
might not be allocated beforehand.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c