mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
h264decoder: Align wraparound fix
Instead of casting GST_CODEC_PICTURE_FRAME_NUMBER (ref_pic) to u64, use 1000ULL which is also u64 . This only aligns the behavior here with '*decoder: Fix multiplication wraparound' commits. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5791>
This commit is contained in:
parent
3cbf09d0c9
commit
7725aa7d77
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ gst_v4l2_codec_h264_dec_fill_decoder_params (GstV4l2CodecH264Dec * self,
|
||||||
* The reference is multiplied by 1000 because it's was set as micro
|
* The reference is multiplied by 1000 because it's was set as micro
|
||||||
* seconds and this TS is nanosecond.
|
* seconds and this TS is nanosecond.
|
||||||
*/
|
*/
|
||||||
.reference_ts = (guint64) GST_CODEC_PICTURE_FRAME_NUMBER (ref_pic) * 1000,
|
.reference_ts = GST_CODEC_PICTURE_FRAME_NUMBER (ref_pic) * G_GUINT64_CONSTANT (1000),
|
||||||
.frame_num = frame_num,
|
.frame_num = frame_num,
|
||||||
.pic_num = pic_num,
|
.pic_num = pic_num,
|
||||||
.flags = V4L2_H264_DPB_ENTRY_FLAG_VALID
|
.flags = V4L2_H264_DPB_ENTRY_FLAG_VALID
|
||||||
|
|
Loading…
Reference in a new issue