mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
decoder: h264: fix processing of EOSEQ NAL.
Fix decoding of end_of_seq() NAL unit so that to not submit the current picture for decoding again. This is pretty vintage code that dates back before the existing of the whole decoder units machinery. One issue that could be arising if that code was kept is that we could have submitted a picture, and subsequently a GstVideoCodec frame, twice. Once without the decode_only flag set, and once with that flag set. The end result is that the GstVideoDecoder would release the codec frame twice, thus releasing stale data. In short, the piece of code that is removed by this patch is for once completely obsolete for a while, and secondly error-prone in corner cases.
This commit is contained in:
parent
a89a8cf1e3
commit
6229ad4f7f
1 changed files with 0 additions and 5 deletions
|
@ -1743,14 +1743,9 @@ static GstVaapiDecoderStatus
|
|||
decode_sequence_end(GstVaapiDecoderH264 *decoder)
|
||||
{
|
||||
GstVaapiDecoderH264Private * const priv = &decoder->priv;
|
||||
GstVaapiDecoderStatus status;
|
||||
|
||||
GST_DEBUG("decode sequence-end");
|
||||
|
||||
status = decode_current_picture(decoder);
|
||||
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS)
|
||||
return status;
|
||||
|
||||
dpb_flush(decoder, NULL);
|
||||
|
||||
/* Reset defaults, should there be a new sequence available next */
|
||||
|
|
Loading…
Reference in a new issue