avformat/smoothstreamingenc:add bitrate calculate
authorJun Li <junli1026@gmail.com>
Wed, 20 Mar 2019 05:49:02 +0000 (13:49 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 20 Mar 2019 05:49:02 +0000 (13:49 +0800)
commit0739d5cd5c925a157ab210e4424f82d98349528d
tree4499f6c0c2b1185973ec9afe84425000434d5385
parentce6301a46fae4858218c7435f9e7fc94d9dd39b2
avformat/smoothstreamingenc:add bitrate calculate

Calculate bitrate based on fragment size, only applied when
bitrate is not set, for example rtsp source.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Jun Li <junli1026@gmail.com>
libavformat/smoothstreamingenc.c