2016-09-27 0:10 GMT+02:00 Jan Ekström :
> avio_printf(pb, "<%s systemBitrate=\"%"PRId64"\">\n", type,
> -(int64_t)track->par->bit_rate);
> -param_write_int(pb, "systemBitrate", track->par->bit_rate);
> +(int64_t)manifest_bit_rate);
The cast
This way, in case of bit rate not being set, max_bitrate will be
used instead. This enables, for example, re-using max_bitrate
information from the input or doing transcoding with a rate
control mode that is not bit rate based.
Signed-off-by: Jan Ekström
---
libavformat/movenc.c | 15 +++