From 4fd0f7277a701f3ef33ea90524700fab6c2c6c77 Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Sun, 5 Apr 2015 05:37:09 +0300 Subject: [PATCH] avfvideosrc: fix setting of buffer offset end Don't set offset end to random values off the stack. https://bugzilla.gnome.org/show_bug.cgi?id=747352 --- sys/applemedia/avfvideosrc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/applemedia/avfvideosrc.m b/sys/applemedia/avfvideosrc.m index f04a977..19b6e55 100644 --- a/sys/applemedia/avfvideosrc.m +++ b/sys/applemedia/avfvideosrc.m @@ -918,7 +918,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer *buf = gst_core_video_texture_cache_get_gl_buffer (textureCache, *buf); GST_BUFFER_OFFSET (*buf) = offset++; - GST_BUFFER_OFFSET_END (*buf) = GST_BUFFER_OFFSET (buf) + 1; + GST_BUFFER_OFFSET_END (*buf) = GST_BUFFER_OFFSET (*buf) + 1; GST_BUFFER_TIMESTAMP (*buf) = timestamp; GST_BUFFER_DURATION (*buf) = duration; -- 2.7.4