Lines Matching defs:hdr
79 ALPHeader *hdr = s->priv_data;
82 if ((hdr->magic = avio_rl32(s->pb)) != ALP_TAG)
85 hdr->header_size = avio_rl32(s->pb);
87 if (hdr->header_size != 8 && hdr->header_size != 12) {
91 if ((ret = avio_read(s->pb, hdr->adpcm, sizeof(hdr->adpcm))) < 0)
93 else if (ret != sizeof(hdr->adpcm))
96 if (strncmp("ADPCM", hdr->adpcm, sizeof(hdr->adpcm)) != 0)
99 hdr->unk1 = avio_r8(s->pb);
100 hdr->num_channels = avio_r8(s->pb);
102 if (hdr->header_size == 8) {
104 hdr->sample_rate = 22050;
108 hdr->sample_rate = avio_rl32(s->pb);
111 if (hdr->sample_rate > 44100) {
123 par->sample_rate = hdr->sample_rate;
125 if (hdr->num_channels > 2 || hdr->num_channels == 0)
128 av_channel_layout_default(&par->ch_layout, hdr->num_channels);
157 const ALPHeader *hdr = s->priv_data;
162 return avio_seek(s->pb, hdr->header_size + 8, SEEK_SET);