changeset 4813:ec96a30c7141 libavformat

Do not return payload type 34 for H.263 (it is deprecated)
author lucabe
date Tue, 07 Apr 2009 06:37:12 +0000
parents f7bc722a3a36
children 730b214077ca
files rtp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtp.c	Mon Apr 06 21:04:26 2009 +0000
+++ b/rtp.c	Tue Apr 07 06:37:12 2009 +0000
@@ -100,6 +100,8 @@
     /* 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;