Safe parsing of HEIF framecount information am: 616bd340ec am: f2a31ecf89 am: 45b2a5d8e4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/16790556

Change-Id: I8247d4bf17d7f5ac49ca20f1fb7764af6f64a5ca