summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-09 13:06:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-09 13:06:04 +0200
commitef9fe5bedd1993700818a0ba1c195cd6f6668afe (patch)
tree3c70bf61e4bae16375575e3e6e8dac55fc1ba148 /libavformat/sdp.c
parent238e904df3988ea0253ba08c8b2883e4740565b6 (diff)
parenta75b9a1804769169456306f570b6716d977ebdc5 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: mingw/cygwin: Stop adding -fno-common to gcc CFLAGS Restructure av_log_missing_feature message rtp: Support packetization/depacketization of opus file: Set the return value type for lseek to int64_t. ppc: fix Altivec build with old compilers build: add LTO support for PGI compiler build: add -Mdse to PGI optimisation flags rtpenc_vp8: Update the packetizer to the latest spec version rtpdec_vp8: Make the depacketizer implement the latest spec draft doc: allow building with old texi2html versions avutil: skip old_pix_fmts.h since it is just a list Conflicts: libavcodec/aacdec.c libavcodec/h264.c libavcodec/ppc/fmtconvert_altivec.c libavcodec/utils.c libavformat/file.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 9a4dec4bb2..ca8c3dfdb7 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -576,6 +576,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
payload_type, c->sample_rate);
break;
+ case AV_CODEC_ID_OPUS:
+ av_strlcatf(buff, size, "a=rtpmap:%d opus/48000\r\n",
+ payload_type);
+ break;
default:
/* Nothing special to do here... */
break;