Skip to content

Commit 9b8d5e1

Browse files
committed
encoder: remove mandatory dc_reject filter
Restore this piece of code to before 0869829. The dc_reject itself is kept in the code, for possible future use.
1 parent 43efb99 commit 9b8d5e1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/opus_encoder.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,12 +1924,8 @@ static opus_int32 opus_encode_frame_native(OpusEncoder *st, const opus_res *pcm,
19241924
}
19251925
#endif
19261926
} else {
1927-
#ifdef ENABLE_QEXT
1928-
/* FIXME: Avoid glitching when we switch qext on/off dynamically. */
1929-
if (st->enable_qext) OPUS_COPY(&pcm_buf[total_buffer*st->channels], pcm, frame_size*st->channels);
1930-
else
1931-
#endif
1932-
dc_reject(pcm, 3, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channels, st->Fs);
1927+
for (i=0;i<frame_size*st->channels;i++)
1928+
pcm_buf[total_buffer*st->channels + i] = pcm[i];
19331929
}
19341930
#ifndef FIXED_POINT
19351931
if (float_api)

0 commit comments

Comments
 (0)