rate_hist,show_histogram: fix crash w/0 buckets
authorJames Zern <jzern@google.com>
Mon, 11 Apr 2022 18:08:12 +0000 (11:08 -0700)
committerJames Zern <jzern@google.com>
Mon, 11 Apr 2022 18:08:12 +0000 (11:08 -0700)
commitd04f78b5635e84a9099f2b0105562b87ba75f2cd
tree97ddf2835f0d120e044b06467fd87503348ef2f8
parent6e1b7c6c14fea5d972bdd1162b51fc93942222a2
rate_hist,show_histogram: fix crash w/0 buckets

this can occur if 0 frames are encoded, e.g., due to --skip

see also: https://crbug.com/aomedia/3243

Change-Id: I791d5ad6611dbcb60d790e6b705298328ec48126
rate_hist.c