mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
vp8enc: Correctly set delta unit flag for non-keyframes
This commit is contained in:
parent
4991d5fef3
commit
370ba5cac7
1 changed files with 3 additions and 1 deletions
|
@ -417,6 +417,8 @@ gst_vp8_enc_finish (GstBaseVideoEncoder * base_video_encoder)
|
|||
memcpy (GST_BUFFER_DATA (frame->src_buffer),
|
||||
pkt->data.frame.buf, pkt->data.frame.sz);
|
||||
|
||||
frame->is_sync_point = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0;
|
||||
|
||||
if (frame->coder_hook)
|
||||
g_free (frame->coder_hook);
|
||||
|
||||
|
@ -557,8 +559,8 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
|
|||
|
||||
memcpy (GST_BUFFER_DATA (frame->src_buffer),
|
||||
pkt->data.frame.buf, pkt->data.frame.sz);
|
||||
frame->is_sync_point = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0;
|
||||
}
|
||||
//frame->is_sync_point = TRUE;
|
||||
|
||||
if (frame->src_buffer) {
|
||||
if (frame->coder_hook)
|
||||
|
|
Loading…
Reference in a new issue