Merge "videoperf: avoid potential ArrayIndexOutOfBounds" into mnc-dev