h264: flush DPB when the end of the sequence is reached.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jan 2012 15:08:03 +0000 (16:08 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Sun, 29 Jan 2012 14:27:59 +0000 (15:27 +0100)
gst-libs/gst/vaapi/gstvaapidecoder_h264.c

index 58bd612..df0007d 100644 (file)
@@ -738,6 +738,7 @@ decode_sequence_end(GstVaapiDecoderH264 *decoder)
 
     if (priv->current_picture && !decode_current_picture(decoder))
         return GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN;
+    dpb_flush(decoder);
     return GST_VAAPI_DECODER_STATUS_END_OF_STREAM;
 }