Lines Matching refs:codecpar
46 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; in ads_read_header()
48 st->codecpar->sample_rate = avio_rl32(s->pb); in ads_read_header()
49 if (st->codecpar->sample_rate <= 0) in ads_read_header()
51 st->codecpar->channels = avio_rl32(s->pb); in ads_read_header()
52 if (st->codecpar->channels <= 0) in ads_read_header()
55 if (align <= 0 || align > INT_MAX / st->codecpar->channels) in ads_read_header()
59 st->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE_PLANAR; in ads_read_header()
61 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_PSX; in ads_read_header()
63 st->codecpar->block_align = st->codecpar->channels * align; in ads_read_header()
66 if (st->codecpar->codec_id == AV_CODEC_ID_ADPCM_PSX && size >= 0x40) in ads_read_header()
67 st->duration = (size - 0x40) / 16 / st->codecpar->channels * 28; in ads_read_header()
68 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); in ads_read_header()
75 AVCodecParameters *par = s->streams[0]->codecpar; in ads_read_packet()