avcodec/wavpackenc: unbreak encoding 8bit pcm

Otherwise the reference decoder reports crc errors.
This commit is contained in:
Paul B Mahol 2023-05-21 11:28:27 +02:00
parent ddc176d0ee
commit fcabfcbf6f
1 changed files with 1 additions and 1 deletions

View File

@ -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);