Mercurial > libavformat.hg
comparison rtp.c @ 2901:0d0ffa1a0478 libavformat
Make AVRtpPayloadTypes static and constant
Patch by Diego 'Flameeyes' Petten (flameeyes AT gmail DOT com)
author | lucabe |
---|---|
date | Sun, 06 Jan 2008 10:00:04 +0000 |
parents | 0d82fdf4fa94 |
children | 64d885714dff |
comparison
equal
deleted
inserted
replaced
2900:a28c002dd2b4 | 2901:0d0ffa1a0478 |
---|---|
27 #include "rtp_internal.h" | 27 #include "rtp_internal.h" |
28 | 28 |
29 //#define DEBUG | 29 //#define DEBUG |
30 | 30 |
31 /* from http://www.iana.org/assignments/rtp-parameters last updated 05 January 2005 */ | 31 /* from http://www.iana.org/assignments/rtp-parameters last updated 05 January 2005 */ |
32 AVRtpPayloadType_t AVRtpPayloadTypes[]= | 32 static const struct |
33 { | |
34 int pt; | |
35 const char enc_name[50]; /* XXX: why 50 ? */ | |
36 enum CodecType codec_type; | |
37 enum CodecID codec_id; | |
38 int clock_rate; | |
39 int audio_channels; | |
40 } AVRtpPayloadTypes[]= | |
33 { | 41 { |
34 {0, "PCMU", CODEC_TYPE_AUDIO, CODEC_ID_PCM_MULAW, 8000, 1}, | 42 {0, "PCMU", CODEC_TYPE_AUDIO, CODEC_ID_PCM_MULAW, 8000, 1}, |
35 {1, "Reserved", CODEC_TYPE_UNKNOWN, CODEC_ID_NONE, -1, -1}, | 43 {1, "Reserved", CODEC_TYPE_UNKNOWN, CODEC_ID_NONE, -1, -1}, |
36 {2, "Reserved", CODEC_TYPE_UNKNOWN, CODEC_ID_NONE, -1, -1}, | 44 {2, "Reserved", CODEC_TYPE_UNKNOWN, CODEC_ID_NONE, -1, -1}, |
37 {3, "GSM", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1}, | 45 {3, "GSM", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1}, |