mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
[MOVED FROM BAD 121/134] 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:
parent
16db1b677a
commit
4cb020932c
1 changed files with 2 additions and 0 deletions
|
@ -941,6 +941,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue