mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 13:36:39 +00:00
openh264enc: Set frame timestamps before sending to the encoder
This commit is contained in:
parent
27c0a9306e
commit
659032b3d9
1 changed files with 1 additions and 1 deletions
|
@ -764,7 +764,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder,
|
||||||
}
|
}
|
||||||
//fill default src_pic
|
//fill default src_pic
|
||||||
src_pic->iColorFormat = videoFormatI420;
|
src_pic->iColorFormat = videoFormatI420;
|
||||||
src_pic->uiTimeStamp = 0;
|
src_pic->uiTimeStamp = frame->pts / GST_MSECOND;
|
||||||
}
|
}
|
||||||
|
|
||||||
openh264enc->frame_count++;
|
openh264enc->frame_count++;
|
||||||
|
|
Loading…
Reference in a new issue