Lines Matching refs:header
32 * entails performing sanity checks on certain header values in order to
90 * so perform sanity checks on various header parameters:
117 /* read ahead to the first audio chunk and validate the first header signature */
131 unsigned char header[AUD_HEADER_SIZE];
133 if (get_buffer(pb, header, AUD_HEADER_SIZE) != AUD_HEADER_SIZE)
135 wsaud->audio_samplerate = AV_RL16(&header[0]);
136 if (header[11] == 99)
142 wsaud->audio_channels = (header[10] & 0x1) + 1;
144 wsaud->audio_bits = (((header[10] & 0x2) >> 1) + 1) * 8;
218 unsigned char *header;
233 /* skip to the start of the VQA header */
236 /* the VQA header needs to go to the decoder */
239 header = (unsigned char *)st->codec->extradata;
245 st->codec->width = AV_RL16(&header[6]);
246 st->codec->height = AV_RL16(&header[8]);
249 if (AV_RL16(&header[24]) || (AV_RL16(&header[0]) == 1 && AV_RL16(&header[2]) == 1)) {
255 if (AV_RL16(&header[0]) == 1)
260 st->codec->sample_rate = AV_RL16(&header[24]);
263 st->codec->channels = header[26];
287 /* catch any unknown header tags, for curiousity */
344 /* unpacked size is stored in header */