openh264enc: Set frame timestamps before sending to the encoder
This commit is contained in:
parent
27c0a9306e
commit
659032b3d9
@ -764,7 +764,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder,
|
||||
}
|
||||
//fill default src_pic
|
||||
src_pic->iColorFormat = videoFormatI420;
|
||||
src_pic->uiTimeStamp = 0;
|
||||
src_pic->uiTimeStamp = frame->pts / GST_MSECOND;
|
||||
}
|
||||
|
||||
openh264enc->frame_count++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user