riff: Add support for AVF files

AVF is valid RIFF but has AVF0 has first fourcc instead of RIFF.

Fixes bug #593117.
This commit is contained in:
Sebastian Dröge 2009-08-26 09:08:53 +02:00
parent 3c8ff21ba2
commit 72f3587f04
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@ G_BEGIN_DECLS
/* tags */
#define GST_RIFF_TAG_RIFF GST_MAKE_FOURCC ('R','I','F','F')
#define GST_RIFF_TAG_AVF0 GST_MAKE_FOURCC ('A','V','F','0')
#define GST_RIFF_TAG_RIFX GST_MAKE_FOURCC ('R','I','F','X')
#define GST_RIFF_TAG_LIST GST_MAKE_FOURCC ('L','I','S','T')
#define GST_RIFF_TAG_avih GST_MAKE_FOURCC ('a','v','i','h')

View file

@ -226,7 +226,7 @@ gst_riff_parse_file_header (GstElement * element,
data = GST_BUFFER_DATA (buf);
tag = GST_READ_UINT32_LE (data);
if (tag != GST_RIFF_TAG_RIFF)
if (tag != GST_RIFF_TAG_RIFF && tag != GST_RIFF_TAG_AVF0)
goto not_riff;
*doctype = GST_READ_UINT32_LE (data + 8);