mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
swr: fix silence buffer for planar U8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fecdc76a9f
commit
bd1d975cd0
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ AudioConvert *swri_audio_convert_alloc(enum AVSampleFormat out_fmt,
|
|||
ctx->channels = channels;
|
||||
ctx->conv_f = f;
|
||||
ctx->ch_map = ch_map;
|
||||
if (in_fmt == AV_SAMPLE_FMT_U8)
|
||||
if (in_fmt == AV_SAMPLE_FMT_U8 || in_fmt == AV_SAMPLE_FMT_U8P)
|
||||
memset(ctx->silence, 0x80, sizeof(ctx->silence));
|
||||
|
||||
if(out_fmt == in_fmt && !ch_map) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue