mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
15 lines
319 B
C
15 lines
319 B
C
|
#include "gstwavpackcommon.h"
|
||
|
#include <string.h>
|
||
|
|
||
|
gboolean
|
||
|
gst_wavpack_read_header (WavpackHeader * header, guint8 * buf)
|
||
|
{
|
||
|
g_memmove (header, buf, sizeof (WavpackHeader));
|
||
|
little_endian_to_native (header, WavpackHeaderFormat);
|
||
|
|
||
|
if (strncmp (header->ckID, "wvpk", 4))
|
||
|
return FALSE;
|
||
|
else
|
||
|
return TRUE;
|
||
|
}
|