]> git.ipfire.org Git - thirdparty/asterisk.git/commit
translate: generic plc not filled in after translation
authorKevin Harwell <kharwell@digium.com>
Wed, 18 Apr 2018 20:59:38 +0000 (15:59 -0500)
committerKevin Harwell <kharwell@digium.com>
Tue, 24 Apr 2018 20:54:25 +0000 (14:54 -0600)
commitff652711c7eaf6e78fd7b201099de90558d79a9d
tree8e6f4fd109dec9cee587d04385ba5ccb0bcbbd92
parenta9c74fdc0462349bd9ae6f25ae72f071c95d1e76
translate: generic plc not filled in after translation

If during translation a codec could not handle a given frame the translation
core would return NULL, thus not passing along the "missing" frame. Due to this
there was no frame to apply generic plc to, thus rendering it useless.

This patch makes it so the translation core produces an interpolated slin frame
in the cases where an attempt was made to translate to slin, but failed. This
interpolated frame is then passed along and can be used by the generic plc
algorithms to fill in the frame.

ASTERISK-27814 #close

Change-Id: I133d084da87adef913bf2ecc9c9240e3eaf4f40a
formats/format_sln.c
main/translate.c