Lines Matching defs:header
53 WvHeader header;
65 /* check file header */
96 ret = ff_wv_parse_header(&wc->header, wc->block_header);
98 av_log(ctx, AV_LOG_ERROR, "Invalid block header.\n");
102 if (wc->header.version < 0x402 || wc->header.version > 0x410) {
104 wc->header.version);
110 if (!wc->header.samples)
113 flags = wc->header.flags;
119 wc->multichannel = !(wc->header.initial && wc->header.final);
125 int64_t block_end = avio_tell(pb) + wc->header.blocksize;
201 avio_seek(pb, block_end - wc->header.blocksize, SEEK_SET);
214 "Bits per sample differ, this block: %i, header block: %i\n",
220 "Channels differ, this block: %i, header block: %i\n",
226 "Sampling rate differ, this block: %i, header block: %i\n",
244 if (!wc->header.samples)
245 avio_skip(pb, wc->header.blocksize);
256 AV_WL16(st->codecpar->extradata, wc->header.version);
264 if (wc->header.total_samples != 0xFFFFFFFFu)
265 st->duration = wc->header.total_samples;
294 if ((ret = av_new_packet(pkt, wc->header.blocksize + WV_HEADER_SIZE)) < 0)
297 ret = avio_read(s->pb, pkt->data + WV_HEADER_SIZE, wc->header.blocksize);
298 if (ret != wc->header.blocksize) {
301 while (!(wc->header.flags & WV_FLAG_FINAL_BLOCK)) {
307 if ((ret = av_grow_packet(pkt, WV_HEADER_SIZE + wc->header.blocksize)) < 0) {
312 ret = avio_read(s->pb, pkt->data + off + WV_HEADER_SIZE, wc->header.blocksize);
313 if (ret != wc->header.blocksize) {
320 pkt->pts = wc->header.block_idx;
321 block_samples = wc->header.samples;