lavf/dashenc: update bitrates on dash_write_trailer
authorPrzemysław Sobala <przemyslaw.sobala@gmail.com>
Fri, 3 Mar 2017 08:38:28 +0000 (09:38 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Mar 2017 15:43:43 +0000 (16:43 +0100)
commit89c0fda5f43d8a3d3a1c538ff8d72e6737bc7d8e
tree89655bfce273758e6d41c049a9996be7a5a0e7ac
parent70a9407b509fbefb60a215bc4ad00e54eb4e64ab
lavf/dashenc: update bitrates on dash_write_trailer

Provides a way to change bandwidth parameter inside DASH manifest after a non-CBR H.264 encoding.
Caller now is able to compute the bitrate by itself, after all packets have been written, and then set that value in AVFormatContext->streams->codecpar->bit_rate before calling av_write_trailer. As a result that value will be set in DASH manifest.

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