diff options
author | Luca Abeni <lucabe72@email.it> | 2008-03-05 13:31:24 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2008-03-05 13:31:24 +0000 |
commit | 83cc23c5d395da07852f051bb5f7b27f2cd556fc (patch) | |
tree | e7ccc2d2921fc07e7527ccf5e63473e1cc6f3f95 /libavformat/sdp.c | |
parent | 1326621c1afe17758a8a92294c3cf4f2b621df9e (diff) | |
download | ffmpeg-83cc23c5d395da07852f051bb5f7b27f2cd556fc.tar.gz |
Add some information about the stream bitrate, if available
Originally committed as revision 12331 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 3a71afcbeb..bddfcd6138 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -267,6 +267,9 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char av_strlcatf(buff, size, "m=%s %d RTP/AVP %d\r\n", type, port, payload_type); dest_write(buff, size, dest_addr, ttl); + if (c->bit_rate) { + av_strlcatf(buff, size, "b=AS:%d\r\n", c->bit_rate / 1000); + } sdp_media_attributes(buff, size, c, payload_type); } |