You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59fc0fd
Browse filesBrowse the repository at this point in the historyBrowse files
ffmpeg_dec: address G.726 review comments and fix EOS drain
Address PR #11462 review feedback and unframed compress EOS drain issues:
- Reject explicit non-mono G.726 capture requests (req_ch > 1) with -EINVAL
in both validate_params and configure while preserving stereo-to-mono
downmix when mono or default channels are requested.
- Add validate_params hook to ffmpeg_dec_codec_ops and reject explicit
multichannel G.726 playback requests (req_channels > 1) with -EINVAL at
both IPC init and configure_avctx time while still allowing mono streams
to upmix to stereo PCM sinks.
- Upgrade the 16->8 kHz stage of ffmpeg_dec_pcm_decimate_6to1_s16_mono()
from a 3-tap [1, 2, 1]/4 filter to a 29-tap Kaiser-windowed linear-phase
low-pass FIR (fc = 0.225 * 16 kHz = 3.6 kHz, beta = 5.2, unity Q15) with
a persistent 27-sample delay line (FFMPEG_DECIM_6TO1_HIST_LEN = 39),
achieving -22.9 dB at 4 kHz Nyquist, -72.6 dB at 5 kHz, and >63 dB
stopband attenuation above 4.5 kHz.
- Clear min_available on compressed decode sources in ffmpeg_dec_prepare()
(with EXPORT_SYMBOL(source_set_min_available)) and gate
ffmpeg_dec_is_ready_to_process() on eos_sent / final host_eos flush so
comp_check_eos() does not inject trailing 0x00 silence blocks into
unframed G.711/G.726/aptX bitstreams at compress drain.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
0 commit comments