mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vc1: handle CLOSED_ENTRY.
When CLOSED_ENTRY == 0, and if the B pictures that follow an entry-point lack a reference anchor picture, these B pictures shall be discarded. https://bugs.freedesktop.org/show_bug.cgi?id=59505
This commit is contained in:
parent
ee181d1b85
commit
3eeff1786a
1 changed files with 5 additions and 1 deletions
|
@ -787,7 +787,11 @@ fill_picture(GstVaapiDecoderVC1 *decoder, GstVaapiPicture *picture)
|
||||||
case GST_VAAPI_PICTURE_TYPE_B:
|
case GST_VAAPI_PICTURE_TYPE_B:
|
||||||
if (next_picture)
|
if (next_picture)
|
||||||
pic_param->backward_reference_picture = next_picture->surface_id;
|
pic_param->backward_reference_picture = next_picture->surface_id;
|
||||||
// fall-through
|
if (prev_picture)
|
||||||
|
pic_param->forward_reference_picture = prev_picture->surface_id;
|
||||||
|
else if (!priv->closed_entry)
|
||||||
|
GST_VAAPI_PICTURE_FLAG_SET(picture, GST_VAAPI_PICTURE_FLAG_SKIPPED);
|
||||||
|
break;
|
||||||
case GST_VAAPI_PICTURE_TYPE_P:
|
case GST_VAAPI_PICTURE_TYPE_P:
|
||||||
if (prev_picture)
|
if (prev_picture)
|
||||||
pic_param->forward_reference_picture = prev_picture->surface_id;
|
pic_param->forward_reference_picture = prev_picture->surface_id;
|
||||||
|
|
Loading…
Reference in a new issue