mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
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:
parent
3c8ff21ba2
commit
72f3587f04
2 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue