vp9decoder: Copy system_frame_number in duplicate_picture

Just like AV1, copy the system_frame_number from the original picture to make
it clear they reference the same data.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1992>
This commit is contained in:
Nicolas Dufresne 2022-03-18 15:59:21 -04:00 committed by GStreamer Marge Bot
parent 80107d4a86
commit a7ceac50b2

View file

@ -468,6 +468,8 @@ gst_vp9_decoder_handle_frame (GstVideoDecoder * decoder,
GST_ERROR_OBJECT (self, "subclass didn't provide duplicated picture");
goto unmap_and_error;
}
picture->system_frame_number = pic_to_dup->system_frame_number;
} else {
picture = gst_vp9_picture_new ();
picture->frame_hdr = frame_hdr;