From 09c879ea21d7ec49c755f9c0210f936e8ebd7ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 May 2010 14:33:49 +0200 Subject: [PATCH] vp8enc: Fix setting of the keyframe flag on encoded frames --- ext/vp8/gstvp8enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c index 2e183e5310..97901163c7 100644 --- a/ext/vp8/gstvp8enc.c +++ b/ext/vp8/gstvp8enc.c @@ -641,8 +641,8 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder, } 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->is_sync_point = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; hook = frame->coder_hook; /* FIXME: If frame is NULL something went really wrong! */