Browse Source

avformat/adxdec: set bit_rate, fixes duration calculation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 9 years ago
parent
commit
5afecff1ef
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/adxdec.c

+ 1
- 0
libavformat/adxdec.c View File

@@ -111,6 +111,7 @@ static int adx_read_header(AVFormatContext *s)

par->codec_type = AVMEDIA_TYPE_AUDIO;
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);



Loading…
Cancel
Save