aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2009-04-07 06:37:12 +0000
committerLuca Abeni <lucabe72@email.it>2009-04-07 06:37:12 +0000
commit215037887d1043f6cf1c82b26bfe8db1a594af02 (patch)
tree2110b7952ce61579b3ef17049db4fdb7ae29c456
parent809e07c6187626952778f4bd45180aabf1b98132 (diff)
downloadffmpeg-215037887d1043f6cf1c82b26bfe8db1a594af02.tar.gz
Do not return payload type 34 for H.263 (it is deprecated)
Originally committed as revision 18346 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index 6b33cee8af..031bb3065f 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -100,6 +100,8 @@ int ff_rtp_get_payload_type(AVCodecContext *codec)
/* compute the payload type */
for (payload_type = -1, i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i)
if (AVRtpPayloadTypes[i].codec_id == codec->codec_id) {
+ if (codec->codec_id == CODEC_ID_H263)
+ continue;
if (codec->codec_id == CODEC_ID_PCM_S16BE)
if (codec->channels != AVRtpPayloadTypes[i].audio_channels)
continue;