Browse Source

omadec: fix bitrate for ATRAC3+ streams

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.1
Maxim Poliakovski Anton Khirnov 12 years ago
parent
commit
487b54104a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/omadec.c

+ 1
- 1
libavformat/omadec.c View File

@@ -379,7 +379,7 @@ static int oma_read_header(AVFormatContext *s)
return AVERROR_INVALIDDATA;
}
st->codec->sample_rate = samplerate;
st->codec->bit_rate = samplerate * framesize * 8 / 1024;
st->codec->bit_rate = samplerate * framesize * 8 / 2048;
avpriv_set_pts_info(st, 64, 1, samplerate);
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
break;


Loading…
Cancel
Save