mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 14:31:09 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: omadec: fix bitrate for ATRAC3+ streams Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
5c7d86cbde
@ -380,7 +380,7 @@ static int oma_read_header(AVFormatContext *s)
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
st->codec->sample_rate = samplerate;
|
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);
|
avpriv_set_pts_info(st, 64, 1, samplerate);
|
||||||
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
|
av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user