Lines Matching defs:hdr
427 AC3HeaderInfo *hdr = NULL;
442 if ((ret = avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size)) < 0) {
455 info->data_rate = FFMAX(info->data_rate, hdr->bit_rate / 1000);
457 hdr->ac3_bit_rate_code);
458 num_blocks = hdr->num_blocks;
462 if (hdr->bitstream_id <= 10 && hdr->substreamid != 0) {
469 if (hdr->frame_type == EAC3_FRAME_TYPE_INDEPENDENT ||
470 hdr->frame_type == EAC3_FRAME_TYPE_AC3_CONVERT) {
472 if (hdr->substreamid > info->num_ind_sub + 1) {
477 if (hdr->substreamid == info->num_ind_sub + 1) {
482 } else if (hdr->substreamid < info->num_ind_sub ||
483 hdr->substreamid == 0 && info->substream[0].bsid) {
488 if (hdr->substreamid != 0) {
496 info->substream[hdr->substreamid].fscod = hdr->sr_code;
497 info->substream[hdr->substreamid].bsid = hdr->bitstream_id;
498 info->substream[hdr->substreamid].bsmod = hdr->bitstream_mode;
499 info->substream[hdr->substreamid].acmod = hdr->channel_mode;
500 info->substream[hdr->substreamid].lfeon = hdr->lfe_on;
511 if (pkt->size != hdr->frame_size) {
512 int cumul_size = hdr->frame_size;
513 int parent = hdr->substreamid;
518 ret = avpriv_ac3_parse_header(&hdr, pkt->data + cumul_size, pkt->size - cumul_size);
521 if (hdr->frame_type != EAC3_FRAME_TYPE_DEPENDENT) {
533 for (i = 0; i < (hdr->channel_mode ? 1 : 2); i++) {
543 info->substream[parent].chan_loc |= hdr->channel_mode;
544 cumul_size += hdr->frame_size;
579 av_free(hdr);