Fix integer overflow in mediadrmserver am: eb21712f81
am: 5250bc1bec

Change-Id: Ic300845c6fd6aa383ee6661812e489f885ada14c