cdoecs: av1: Copy system_frame_number in duplicate_picture

The system_frame_number is notably used by V4L2 decoder as a unique
indentifier for the frame that was decoded. This value is used to tell driver
which frame to reference, as V4L2 does not have an efficient mechanism to
otherwise pass back the frames.

For this reason, and because it is more ligical, copy the original
system_frame_number into the duplicate picture instead of using the current
frame.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1992>
This commit is contained in:
Nicolas Dufresne 2022-03-09 16:35:56 -05:00 committed by GStreamer Marge Bot
parent 0c6125bad6
commit 80107d4a86

View file

@ -372,7 +372,7 @@ gst_av1_decoder_decode_frame_header (GstAV1Decoder * self,
return GST_FLOW_ERROR;
}
picture->system_frame_number = priv->current_frame->system_frame_number;
picture->system_frame_number = ref_picture->system_frame_number;
picture->frame_hdr = *frame_header;
priv->current_picture = picture;
} else {