OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1326621
)
Add some information about the stream bitrate, if available
author
Luca Abeni
<lucabe72@email.it>
Wed, 5 Mar 2008 13:31:24 +0000
(13:31 +0000)
committer
Luca Abeni
<lucabe72@email.it>
Wed, 5 Mar 2008 13:31:24 +0000
(13:31 +0000)
Originally committed as revision 12331 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/sdp.c
patch
|
blob
|
history
diff --git
a/libavformat/sdp.c
b/libavformat/sdp.c
index
3a71afc
..
bddfcd6
100644
(file)
--- 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);
}