App crash while packet lost in receiving loop

If packet[6] lost in receiving loop. Then packet[5]->sample_time and packet[7]->sample_timeare not consistent. The whole app crash then.
With this patch buffer are padding with 0x01 automatically to suit for that.