Lines Matching refs:codecpar
45 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
46 st->codecpar->codec_id = AV_CODEC_ID_INTERPLAY_ACM;
48 ret = ff_get_extradata(s, st->codecpar, s->pb, 14);
52 st->codecpar->ch_layout.nb_channels = AV_RL16(st->codecpar->extradata + 8);
53 st->codecpar->sample_rate = AV_RL16(st->codecpar->extradata + 10);
54 if (st->codecpar->ch_layout.nb_channels <= 0 || st->codecpar->sample_rate <= 0)
57 st->duration = AV_RL32(st->codecpar->extradata + 4) / st->codecpar->ch_layout.nb_channels;
59 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);