Commit 22543d96 authored by lucabe's avatar lucabe

Do not return payload type 34 for H.263 (it is deprecated)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18346 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c5cbbf72
...@@ -100,6 +100,8 @@ int ff_rtp_get_payload_type(AVCodecContext *codec) ...@@ -100,6 +100,8 @@ int ff_rtp_get_payload_type(AVCodecContext *codec)
/* compute the payload type */ /* compute the payload type */
for (payload_type = -1, i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i) for (payload_type = -1, i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i)
if (AVRtpPayloadTypes[i].codec_id == codec->codec_id) { 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->codec_id == CODEC_ID_PCM_S16BE)
if (codec->channels != AVRtpPayloadTypes[i].audio_channels) if (codec->channels != AVRtpPayloadTypes[i].audio_channels)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment