changeset 7568:fad363ad7552 8u11-b08

RT-36677 Reviewed by: Alexander Matveev, Kevin Rushforth
author Marc Owerfeldt <marc.owerfeldt@oracle.com>
date Fri, 09 May 2014 10:00:07 -0700
parents be90db286898
children 300e8d2c5c6a
files modules/media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-good/gst/isomp4/qtdemux.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-good/gst/isomp4/qtdemux.c	Tue May 06 07:27:28 2014 -0700
+++ b/modules/media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-good/gst/isomp4/qtdemux.c	Fri May 09 10:00:07 2014 -0700
@@ -5902,6 +5902,8 @@
 
     /* we might allocate a bit too much, at least allocate 1 segment */
 #ifdef GSTREAMER_LITE
+    n_segments = MAX (n_segments, 1);
+      
     if (n_segments < G_MAXSIZE / sizeof(QtDemuxSegment)) {
         stream->segments = g_try_malloc (sizeof(QtDemuxSegment) * n_segments);