Lines Matching refs:sample_rate
34 int sample_rate = 0; in ff_voc_get_packet() local
70 if (!par->sample_rate) { in ff_voc_get_packet()
71 par->sample_rate = 1000000 / (256 - avio_r8(pb)); in ff_voc_get_packet()
72 if (sample_rate) in ff_voc_get_packet()
73 par->sample_rate = sample_rate; in ff_voc_get_packet()
74 avpriv_set_pts_info(st, 64, 1, par->sample_rate); in ff_voc_get_packet()
89 sample_rate = avio_rl16(pb); in ff_voc_get_packet()
92 sample_rate = 256000000 / (channels * (65536 - sample_rate)); in ff_voc_get_packet()
102 if (!par->sample_rate) { in ff_voc_get_packet()
103 par->sample_rate = avio_rl32(pb); in ff_voc_get_packet()
104 avpriv_set_pts_info(st, 64, 1, par->sample_rate); in ff_voc_get_packet()
123 if (par->sample_rate <= 0) { in ff_voc_get_packet()
124 av_log(s, AV_LOG_ERROR, "Invalid sample rate %d\n", par->sample_rate); in ff_voc_get_packet()
143 par->bit_rate = (int64_t)par->sample_rate * par->channels * par->bits_per_coded_sample; in ff_voc_get_packet()