riff: Recognize RF64 as RIFF file

https://bugzilla.gnome.org/show_bug.cgi?id=735631
This commit is contained in:
Peter G. Baum 2014-07-23 21:25:24 +02:00 committed by Sebastian Dröge
parent acdb7feacf
commit b9a54fcabe
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,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_RF64 GST_MAKE_FOURCC ('R','F','6','4')
#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

@ -235,7 +235,8 @@ gst_riff_parse_file_header (GstElement * element,
goto too_small;
tag = GST_READ_UINT32_LE (info.data);
if (tag != GST_RIFF_TAG_RIFF && tag != GST_RIFF_TAG_AVF0)
if (tag != GST_RIFF_TAG_RIFF && tag != GST_RIFF_TAG_AVF0
&& tag != GST_RIFF_TAG_RF64)
goto not_riff;
*doctype = GST_READ_UINT32_LE (info.data + 8);