History

avcodec/wavpackenc: unbreak encoding 8bit pcm

Otherwise the reference decoder reports crc errors.

Paul B Mahol committed 3 years ago

Commit fcabfcb1 parent ddc176d1 file · +1 −1Browse files

Unified · Split

libavcodec/wavpackenc.c+1−1
@@ -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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t