mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
scenechange: fix crash on startup
gst_video_frame_map() was using the oldinfo GstVideoInfo before it's been populated, resulting in a crash right at the start. https://bugzilla.gnome.org/show_bug.cgi?id=734763
This commit is contained in:
parent
8f25220b9c
commit
8caf5b7360
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ gst_scene_change_transform_frame_ip (GstVideoFilter * filter,
|
||||||
scenechange->n_diffs = 0;
|
scenechange->n_diffs = 0;
|
||||||
memset (scenechange->diffs, 0, sizeof (double) * SC_N_DIFFS);
|
memset (scenechange->diffs, 0, sizeof (double) * SC_N_DIFFS);
|
||||||
scenechange->oldbuf = gst_buffer_ref (frame->buffer);
|
scenechange->oldbuf = gst_buffer_ref (frame->buffer);
|
||||||
|
memcpy (&scenechange->oldinfo, &frame->info, sizeof (GstVideoInfo));
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue