Lines Matching refs:preamble
94 unsigned char preamble[FLIC_PREAMBLE_SIZE];
132 /* peek at the preamble to detect TFTD videos - they seem to always start with an audio chunk */
133 if (avio_read(pb, preamble, FLIC_PREAMBLE_SIZE) != FLIC_PREAMBLE_SIZE) {
134 av_log(s, AV_LOG_ERROR, "Failed to peek at preamble\n");
141 * If the first preamble's magic number is 0xAAAA then this file is from
146 if (AV_RL16(&preamble[4]) == FLIC_TFTD_CHUNK_AUDIO) {
155 ast->codecpar->block_align = AV_RL32(&preamble[0]);
203 unsigned char preamble[FLIC_PREAMBLE_SIZE];
208 if ((ret = avio_read(pb, preamble, FLIC_PREAMBLE_SIZE)) !=
214 size = AV_RL32(&preamble[0]);
215 magic = AV_RL16(&preamble[4]);
223 memcpy(pkt->data, preamble, FLIC_PREAMBLE_SIZE);