mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
avvidenc: Pass the correct user_data to gst_buffer_new_wrapped_full()
Fixes crash with e.g. gst-launch-1.0 videotestsrc num-buffers=40 ! \ videoconvert ! avenc_huffyuv ! fakesink
This commit is contained in:
parent
fcdb9c08c5
commit
e5e78379ad
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ gst_ffmpegvidenc_flush_buffers (GstFFMpegVidEnc * ffmpegenc, gboolean send)
|
|||
if (send && have_data) {
|
||||
outbuf =
|
||||
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, pkt->data,
|
||||
pkt->size, 0, pkt->size, pkt->data, gst_ffmpegvidenc_free_avpacket);
|
||||
pkt->size, 0, pkt->size, pkt, gst_ffmpegvidenc_free_avpacket);
|
||||
frame->output_buffer = outbuf;
|
||||
|
||||
if (ffmpegenc->context->coded_frame->key_frame)
|
||||
|
|
Loading…
Reference in a new issue