Browse Source

Add some information about the stream bitrate, if available

Originally committed as revision 12331 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 17 years ago
parent
commit
83cc23c5d3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/sdp.c

+ 3
- 0
libavformat/sdp.c View File

@@ -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);
}


Loading…
Cancel
Save