Fix push mode buffering sanity check to actually fit the description.
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 20 Apr 2009 11:45:32 +0000 (13:45 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 20 Apr 2009 11:49:03 +0000 (13:49 +0200)
gst/qtdemux/qtdemux.c

index afa72c1..6ff2157 100644 (file)
@@ -2512,7 +2512,7 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf)
             demux->neededbytes = next_entry_size (demux);
           } else {
             /* sanity check */
-            if (size > 10 * (2 << 20))
+            if (size > 10 * (1 << 20))
               goto no_moov;
             demux->state = QTDEMUX_STATE_BUFFER_MDAT;
             demux->neededbytes = size;