dashenc: calculate stream bitrate from first segment if not available
authorPeter Große <pegro@friiks.de>
Mon, 30 Jan 2017 12:49:44 +0000 (13:49 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 30 Jan 2017 22:08:21 +0000 (00:08 +0200)
commit9df9309d233f59d9706444a1e24ac24139f2640d
treef479e506af6efa9bd288f88c9ff0c5050337c980
parente519dcd937c7c98815ba9884867590e302272016
dashenc: calculate stream bitrate from first segment if not available

Bandwidth information is required in the manifest, but not always
provided by the demuxer. In that case calculate the bandwith based
on the size and duration of the first segment.

Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c