mkvtoolnix/aac_common.h

39 lines
901 B
C
Raw Normal View History

/*
mkvmerge -- utility for splicing together matroska files
from component media subtypes
aac_common.h
Written by Moritz Bunkus <moritz@bunkus.org>
Distributed under the GPL
see the file COPYING for details
or visit http://www.gnu.org/copyleft/gpl.html
*/
/*!
\file
2003-06-15 14:03:28 +00:00
\version $Id$
\brief definitions and helper functions for AAC data
2003-05-18 20:57:08 +00:00
\author Moritz Bunkus <moritz@bunkus.org>
*/
#ifndef __AACCOMMON_H
#define __AACCOMMON_H
typedef struct {
int sample_rate;
int bit_rate;
int channels;
int bytes;
int id; // 0 = MPEG-4, 1 = MPEG-2
int profile;
int header_bit_size, header_byte_size, data_byte_size;
} aac_header_t;
2003-05-18 19:56:31 +00:00
int parse_aac_adif_header(unsigned char *buf, int size,
aac_header_t *aac_header);
int find_aac_header(unsigned char *buf, int size, aac_header_t *aac_header);
#endif // __AACCOMMON_H