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

Change-Id: I212669c64a748fed506b8b4a90a568aa91d01787