git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@265273
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int num_new_samples = frame->samples;
struct plc_ds *plc = datastore->data;
+
+ /* If this audio frame has no samples to fill in ignore it */
+ if (!num_new_samples) {
+ return;
+ }
+
/* First, we need to be sure that our buffer is large enough to accomodate
* the samples we need to fill in. This will likely only occur on the first
* frame we write.