mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mpeg2: fix decoding of sequence_end().
There shall be only one place to call decode_current_picture(), and this is in the end_frame() hook. The EOS unit is processed after end_frame() so this means we cannot have a valid picture to decode/output at this point.
This commit is contained in:
parent
23b2386fd0
commit
564ca5d221
1 changed files with 0 additions and 5 deletions
|
@ -801,11 +801,6 @@ static GstVaapiDecoderStatus
|
|||
decode_sequence_end(GstVaapiDecoderMpeg2 *decoder)
|
||||
{
|
||||
GstVaapiDecoderMpeg2Private * const priv = decoder->priv;
|
||||
GstVaapiDecoderStatus status;
|
||||
|
||||
status = decode_current_picture(decoder);
|
||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||
return status;
|
||||
|
||||
gst_vaapi_dpb_flush(priv->dpb);
|
||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue