avformat/utils: Do not compute the bitrate from duration == 0
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 May 2016 11:43:02 +0000 (13:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
commit2e0af764b32f76859d6b441812e2e2c9b5c1bed3
tree2b38a90e046dbd7e192e9ee86c246cb81d7a58ea
parent8857dc6cd856b9f1eaf6c7f6c76b55f2ca95ef59
avformat/utils: Do not compute the bitrate from duration == 0

Fixes division by 0 in fate-acodec-ra144

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 635b2ec5f20d6cdef1adf4907ca28f8f09abcecc)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c