You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/adxdec: set bit_rate, fixes duration calculation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -111,6 +111,7 @@ static int adx_read_header(AVFormatContext *s)
|
|||||||
|
|
||||||
par->codec_type = AVMEDIA_TYPE_AUDIO;
|
par->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
par->codec_id = s->iformat->raw_codec_id;
|
par->codec_id = s->iformat->raw_codec_id;
|
||||||
|
par->bit_rate = par->sample_rate * par->channels * BLOCK_SIZE * 8LL / BLOCK_SAMPLES;
|
||||||
|
|
||||||
avpriv_set_pts_info(st, 64, BLOCK_SAMPLES, par->sample_rate);
|
avpriv_set_pts_info(st, 64, BLOCK_SAMPLES, par->sample_rate);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user