[FFmpeg-cvslog] avcodec/wavpackenc: unbreak encoding 8bit pcm
Paul B Mahol
git at videolan.org
Sun May 21 12:28:22 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun May 21 11:28:27 2023 +0200| [fcabfcbf6fb061c97cff1d5ab52e55350ad00bb8] | committer: Paul B Mahol
avcodec/wavpackenc: unbreak encoding 8bit pcm
Otherwise the reference decoder reports crc errors.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcabfcbf6fb061c97cff1d5ab52e55350ad00bb8
---
libavcodec/wavpackenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 3d2d45360d..9271e87990 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -2824,7 +2824,7 @@ static void fill_buffer(WavPackEncodeContext *s,
switch (s->avctx->sample_fmt) {
case AV_SAMPLE_FMT_U8P:
- COPY_SAMPLES(int8_t, 0x80, 0);
+ COPY_SAMPLES(uint8_t, 0x80, 0);
break;
case AV_SAMPLE_FMT_S16P:
COPY_SAMPLES(int16_t, 0, 0);
More information about the ffmpeg-cvslog
mailing list