mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
0c6125bad6
commit
80107d4a86
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue