]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2019-005 - translate: Don't assume all frames will have a src.
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Aug 2019 12:53:27 +0000 (09:53 -0300)
committerGerrit <noreply@gerrit.asterisk.org>
Thu, 5 Sep 2019 10:27:01 +0000 (05:27 -0500)
commitc7115465595375fbd22abc55dc50f28e90d53994
tree0051397d8d2b874fb77b4bdbf6299b9eb7f51504
parent92876e8f0bd77cf46d660b23e1037ee8521971c5
AST-2019-005 - translate: Don't assume all frames will have a src.

This change removes the assumption that a frame will always have
a src set on it. This assumption is incorrect.

Given a scenario where an RTP packet is received with no payload
the resulting audio frame will have no samples. If this frame goes
through a signed linear translation path an interpolated frame can
be created (if generic packet loss concealment is enabled) that has
minimal data on it, including no src. If this frame is given to a
translation path a crash will occur due to the lack of src.

ASTERISK-28499

Change-Id: I024d10dd98207eb8a6b35b59880bcdf1090538f8
main/translate.c