[FFmpeg-cvslog] r12331 - trunk/libavformat/sdp.c
lucabe
subversion
Wed Mar 5 14:31:24 CET 2008
Author: lucabe
Date: Wed Mar 5 14:31:24 2008
New Revision: 12331
Log:
Add some information about the stream bitrate, if available
Modified:
trunk/libavformat/sdp.c
Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c (original)
+++ trunk/libavformat/sdp.c Wed Mar 5 14:31:24 2008
@@ -267,6 +267,9 @@ static void sdp_write_media(char *buff,
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);
}
More information about the ffmpeg-cvslog
mailing list