diff options
author | Rafaël Carré <rafael.carre@savoirfairelinux.com> | 2011-09-26 11:56:48 -0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-09-26 21:54:57 +0300 |
commit | 9152880e9503f193032304c65c78b297171c81ee (patch) | |
tree | b1f9392ffd369b55d3ac5346d9acf38bb9b019f5 /libavformat/sdp.c | |
parent | 142887741fceed6de63a64e21cfca1944c2be889 (diff) | |
download | ffmpeg-9152880e9503f193032304c65c78b297171c81ee.tar.gz |
rtpenc: Add a payload type private option
Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index f27a89936c..a586690d3f 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -532,7 +532,7 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des const char *type; int payload_type; - payload_type = ff_rtp_get_payload_type(c); + payload_type = ff_rtp_get_payload_type(fmt, c); switch (c->codec_type) { case AVMEDIA_TYPE_VIDEO : type = "video" ; break; |