Merge "codec2: set input buffer to nullptr when work is done" into pi-dev