mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vc1: fix next POC for new sequence layers.
Fix next POC when a new sequence layer is reached. At this point, we need to reset any previous reference picture, i.e. non B-frame.
This commit is contained in:
parent
472f3473e0
commit
823f16d7ce
1 changed files with 7 additions and 0 deletions
|
@ -248,6 +248,13 @@ decode_sequence(GstVaapiDecoderVC1 *decoder, GstVC1BDU *rbdu, GstVC1BDU *ebdu)
|
|||
|
||||
priv->has_entrypoint = FALSE;
|
||||
|
||||
/* Reset POC */
|
||||
if (priv->last_non_b_picture) {
|
||||
if (priv->last_non_b_picture->poc == priv->next_poc)
|
||||
priv->next_poc++;
|
||||
gst_vaapi_picture_replace(&priv->last_non_b_picture, NULL);
|
||||
}
|
||||
|
||||
/* Validate profile */
|
||||
switch (seq_hdr->profile) {
|
||||
case GST_VC1_PROFILE_SIMPLE:
|
||||
|
|
Loading…
Reference in a new issue