memcpy (d2, tmp, bytes);
}
-/*
- * Helper for gst_avi_demux_insert()
- */
-static gboolean
-gst_avi_demux_is_uncompressed (guint32 fourcc)
-{
- return fourcc == GST_RIFF_DIB ||
- fourcc == GST_RIFF_rgb ||
- fourcc == GST_RIFF_RGB || fourcc == GST_RIFF_RAW;
-}
+
+#define gst_avi_demux_is_uncompressed(fourcc) \
+ (fourcc == GST_RIFF_DIB || \
+ fourcc == GST_RIFF_rgb || \
+ fourcc == GST_RIFF_RGB || fourcc == GST_RIFF_RAW)
/*
* Invert DIB buffers... Takes existing buffer and
gint bpp, stride;
guint8 *tmp = NULL;
+ if (stream->strh->type != GST_RIFF_FCC_vids)
+ return buf;
+
if (!gst_avi_demux_is_uncompressed (stream->strh->fcc_handler)) {
return buf; /* Ignore non DIB buffers */
}