vp8enc: initiate encoder to fix a crash.

Without this patch vp8enc send header before and after first
key frame. On second keyframe vp8dec will crash without getting
decoded frame. With this pipe it is easy to reproduce this issue:
gst-launch-1.0 videotestsrc ! vp8enc ! vp8dec ! fakesink

https://bugzilla.gnome.org/show_bug.cgi?id=680667
This commit is contained in:
Oleksij Rempel 2012-07-26 19:31:14 +02:00 committed by Tim-Philipp Müller
parent f10875fc72
commit 94337d05a5

View file

@ -920,6 +920,8 @@ gst_vp8_enc_set_format (GstVideoEncoder * video_encoder,
gst_video_encoder_set_output_state (video_encoder, caps, state);
gst_video_codec_state_unref (output_state);
gst_video_encoder_negotiate (GST_VIDEO_ENCODER (encoder));
return ret;
}