Otherwise the reference decoder reports crc errors.
Unified · Split
| @@ -2824,7 +2824,7 @@ static void fill_buffer(WavPackEncodeContext *s, · 2823 unmodified lines | |||
| 2824 | 2824 | ||
| 2825 | switch (s->avctx->sample_fmt) { | 2825 | switch (s->avctx->sample_fmt) { |
| 2826 | case AV_SAMPLE_FMT_U8P: | 2826 | case AV_SAMPLE_FMT_U8P: |
| 2827 | COPY_SAMPLES(int8_t, 0x80, 0); | 2827 | COPY_SAMPLES(uint8_t, 0x80, 0); |
| 2828 | break; | 2828 | break; |
| 2829 | case AV_SAMPLE_FMT_S16P: | 2829 | case AV_SAMPLE_FMT_S16P: |
| 2830 | COPY_SAMPLES(int16_t, 0, 0); | 2830 | COPY_SAMPLES(int16_t, 0, 0); |