2008-11-14 Jan Schmidt <jan.schmidt@sun.com>
+ * gst/audioresample/gstaudioresample.c:
+ Guard against a NULL dereference I somehow encountered -
+ with a FLUSH_STOP arriving either before basetransform _start(),
+ or after _stop().
+
+ * gst/typefind/gsttypefindfunctions.c:
+ Make sure we never jump backwards when typefinding corrupt mov files.
+
+2008-11-14 Jan Schmidt <jan.schmidt@sun.com>
+
* gst-libs/gst/interfaces/propertyprobe.c:
Fix random type causing a docs warning.
case GST_EVENT_FLUSH_START:
break;
case GST_EVENT_FLUSH_STOP:
- resample_input_flush (audioresample->resample);
+ if (audioresample->resample)
+ resample_input_flush (audioresample->resample);
audioresample->ts_offset = -1;
audioresample->next_ts = -1;
audioresample->offset = -1;
guint64 size;
while ((data = gst_type_find_peek (tf, offset, 8)) != NULL) {
+ guint64 new_offset;
+
/* box/atom types that are in common with ISO base media file format */
if (STRNCMP (&data[4], "moov", 4) == 0 ||
STRNCMP (&data[4], "mdat", 4) == 0 ||
if (size < 8)
break;
}
- offset += size;
+ new_offset = offset + size;
+ if (new_offset <= offset)
+ break;
+ offset = new_offset;
}
if (tip > 0) {
gst_type_find_suggest (tf, tip, QT_CAPS);