diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-07 00:05:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-07 00:05:19 +0200 |
commit | bd1d975cd098062a15da85f1384883e8fb6c526f (patch) | |
tree | cb2e38b0fd6def73d939c7bd8a5ed3117688bb12 /libswresample/audioconvert.c | |
parent | fecdc76a9ff685eec8807fc6cafadf8efdb3370c (diff) | |
download | ffmpeg-bd1d975cd098062a15da85f1384883e8fb6c526f.tar.gz |
swr: fix silence buffer for planar U8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/audioconvert.c')
-rw-r--r-- | libswresample/audioconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c index 3143d697b7..c53135677b 100644 --- a/libswresample/audioconvert.c +++ b/libswresample/audioconvert.c @@ -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) { |