mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
typefindfunctions: Detect AVF files as RIFF files too
AVF is valid RIFF but has AVF0 as first fourcc instead of RIFF. Partially fixes bug #593117.
This commit is contained in:
parent
e22c843d0e
commit
3c8ff21ba2
1 changed files with 1 additions and 1 deletions
|
@ -3298,7 +3298,7 @@ riff_type_find (GstTypeFind * tf, gpointer private)
|
|||
GstTypeFindData *riff_data = (GstTypeFindData *) private;
|
||||
guint8 *data = gst_type_find_peek (tf, 0, 12);
|
||||
|
||||
if (data && memcmp (data, "RIFF", 4) == 0) {
|
||||
if (data && (memcmp (data, "RIFF", 4) == 0 || memcmp (data, "AVF0", 4) == 0)) {
|
||||
data += 8;
|
||||
if (memcmp (data, riff_data->data, 4) == 0)
|
||||
gst_type_find_suggest (tf, riff_data->probability, riff_data->caps);
|
||||
|
|
Loading…
Reference in a new issue