29 0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
30 12000, 24000, 48000, 96000, 192000
38 const uint16_t *ssrc = (
const uint16_t *) src;
39 uint16_t *sdst = (uint16_t *) dst;
42 if ((
unsigned) src_size > (unsigned) max_size)
48 memcpy(dst, src, src_size);
51 for (i = 0; i < (src_size + 1) >> 1; i++)
57 for (i = 0; i < (src_size + 1) >> 1; i++, src += 2) {
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int ff_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, int max_size)
Convert bitstream to one representation based on sync marker.
static void put_bits(PutBitContext *s, int n, unsigned int value)
Write up to 31 bits into a bitstream.
static int put_bits_count(PutBitContext *s)
#define DCA_MARKER_14B_LE
const uint32_t avpriv_dca_sample_rates[16]
#define DCA_MARKER_RAW_LE
#define DCA_MARKER_14B_BE
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
#define DCA_MARKER_RAW_BE
DCA syncwords, also used for bitstream type detection.