mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
encoder: h264,h265: fix regression in offset count
In commit dc35dafa
a bug was introduced because I assumed that
GST_CLOCK_TIME_NONE is zero when is -1. This patch fixes that mistake.
https://bugzilla.gnome.org/show_bug.cgi?id=772259
This commit is contained in:
parent
60ada3e76b
commit
ef3ee8b7bb
2 changed files with 2 additions and 2 deletions
|
@ -2473,7 +2473,7 @@ reset_properties (GstVaapiEncoderH264 * encoder)
|
|||
encoder->cts_offset = gst_util_uint64_scale (GST_SECOND,
|
||||
GST_VAAPI_ENCODER_FPS_D (encoder), GST_VAAPI_ENCODER_FPS_N (encoder));
|
||||
else
|
||||
encoder->cts_offset = GST_CLOCK_TIME_NONE;
|
||||
encoder->cts_offset = 0;
|
||||
|
||||
/* init max_frame_num, max_poc */
|
||||
encoder->log2_max_frame_num =
|
||||
|
|
|
@ -2034,7 +2034,7 @@ reset_properties (GstVaapiEncoderH265 * encoder)
|
|||
encoder->cts_offset = gst_util_uint64_scale (GST_SECOND,
|
||||
GST_VAAPI_ENCODER_FPS_D (encoder), GST_VAAPI_ENCODER_FPS_N (encoder));
|
||||
else
|
||||
encoder->cts_offset = GST_CLOCK_TIME_NONE;
|
||||
encoder->cts_offset = 0;
|
||||
|
||||
/* init max_poc */
|
||||
encoder->log2_max_pic_order_cnt =
|
||||
|
|
Loading…
Reference in a new issue