goto err;
afi->seconds_total = ov_time_total(&of, -1);
afi->frequency = vi->rate;
- afi->bitrate = ov_bitrate(&of, 0);
+ afi->bitrate = ov_bitrate(&of, 0) / 1000;
afi->channels = vi->channels;
afi->chunks_total = ogg_compute_chunk_table(&of, afi, afi->seconds_total);
sprintf(afi->info_string, "audio_file_info1:%lu x %lu, %ukHz, "
"audio_file_info2: \n"
"audio_file_info3: \n",
afi->chunks_total, (long unsigned) (chunk_time * 1000 * 1000),
- afi->frequency / 1000, vi->channels, afi->bitrate / 1000
+ afi->frequency / 1000, vi->channels, afi->bitrate
);
afi->chunk_tv.tv_sec = 0;
afi->chunk_tv.tv_usec = 250 * 1000;