openh264enc: Set frame timestamps before sending to the encoder

This commit is contained in:
Sebastian Dröge 2016-06-30 23:38:26 +02:00
parent 27c0a9306e
commit 659032b3d9

View file

@ -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++;