vp8enc: Fix setting of the keyframe flag on encoded frames

This commit is contained in:
Sebastian Dröge 2010-05-18 14:33:49 +02:00
parent dd97378702
commit 09c879ea21

View file

@ -641,8 +641,8 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
} }
invisible = (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) != 0; invisible = (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) != 0;
frame->is_sync_point = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0;
frame = gst_base_video_encoder_get_oldest_frame (base_video_encoder); frame = gst_base_video_encoder_get_oldest_frame (base_video_encoder);
frame->is_sync_point = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0;
hook = frame->coder_hook; hook = frame->coder_hook;
/* FIXME: If frame is NULL something went really wrong! */ /* FIXME: If frame is NULL something went really wrong! */