mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Ensure we request s16 samples.
We won't get these for atrac3+, but we should for atrac3 (seems to be the default anyway, but better to be clear.)
This commit is contained in:
parent
24ab84a0fe
commit
2f443f52a6
1 changed files with 1 additions and 0 deletions
|
@ -1255,6 +1255,7 @@ int __AtracSetContext(Atrac *atrac) {
|
|||
atrac->pCodecCtx->channel_layout = AV_CH_LAYOUT_MONO;
|
||||
|
||||
// open codec
|
||||
atrac->pCodecCtx->request_sample_fmt = AV_SAMPLE_FMT_S16;
|
||||
if ((ret = avcodec_open2(atrac->pCodecCtx, pCodec, NULL)) < 0) {
|
||||
ERROR_LOG(ME, "avcodec_open2: Cannot open audio decoder %d", ret);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue