• Home
  • Raw
  • Download

Lines Matching refs:codecpar

96     AVCodecParameters *par = s->streams[0]->codecpar;  in get_aiff_header()
242 if (size == AVERROR_EOF && offset > 0 && st->codecpar->block_align) { in aiff_read_header()
298 …if (st->codecpar->block_align && !(pb->seekable & AVIO_SEEKABLE_NORMAL)) /* Assume COMM already… in aiff_read_header()
309 if ((ret = ff_get_extradata(s, st->codecpar, pb, size)) < 0) in aiff_read_header()
311 … if ( (st->codecpar->codec_id == AV_CODEC_ID_QDMC || st->codecpar->codec_id == AV_CODEC_ID_QDM2) in aiff_read_header()
312 && size>=12*4 && !st->codecpar->block_align) { in aiff_read_header()
313 st->codecpar->block_align = AV_RB32(st->codecpar->extradata+11*4); in aiff_read_header()
314 aiff->block_duration = AV_RB32(st->codecpar->extradata+9*4); in aiff_read_header()
315 } else if (st->codecpar->codec_id == AV_CODEC_ID_QCELP) { in aiff_read_header()
318 rate = st->codecpar->extradata[24]; in aiff_read_header()
321 st->codecpar->block_align = 17; in aiff_read_header()
325 st->codecpar->block_align = 35; in aiff_read_header()
328 … st->codecpar->bit_rate = (int64_t)st->codecpar->sample_rate * (st->codecpar->block_align << 3) / in aiff_read_header()
337 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_XA; in aiff_read_header()
342 st->codecpar->block_align = avio_rb32(pb); in aiff_read_header()
347 if (offset > 0 && st->codecpar->block_align) // COMM && SSND in aiff_read_header()
365 if (!st->codecpar->block_align && st->codecpar->codec_id == AV_CODEC_ID_QCELP) { in aiff_read_header()
367 st->codecpar->block_align = 35; in aiff_read_header()
368 } else if (!st->codecpar->block_align) { in aiff_read_header()
374 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); in aiff_read_header()
399 if (!st->codecpar->block_align) { in aiff_read_packet()
405 switch (st->codecpar->codec_id) { in aiff_read_packet()
410 size = st->codecpar->block_align; in aiff_read_packet()
413 …size = st->codecpar->block_align ? (MAX_SIZE / st->codecpar->block_align) * st->codecpar->block_al… in aiff_read_packet()
422 if (size >= st->codecpar->block_align) in aiff_read_packet()
426 pkt->duration = (res / st->codecpar->block_align) * aiff->block_duration; in aiff_read_packet()