* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "libavcodec/bitstream.h"
#include "avformat.h"
-#include "bitstream.h"
#include <unistd.h>
#include "network.h"
//#define DEBUG
/* from http://www.iana.org/assignments/rtp-parameters last updated 05 January 2005 */
+/* payload types >= 96 are dynamic;
+ * payload types between 72 and 76 are reserved for RTCP conflict avoidance;
+ * all the other payload types not present in the table are unassigned or
+ * reserved
+ */
static const struct
{
int pt;
- const char enc_name[50]; /* XXX: why 50 ? */
+ const char enc_name[6];
enum CodecType codec_type;
enum CodecID codec_id;
int clock_rate;
{11, "L16", CODEC_TYPE_AUDIO, CODEC_ID_PCM_S16BE, 44100, 1},
{12, "QCELP", CODEC_TYPE_AUDIO, CODEC_ID_QCELP, 8000, 1},
{13, "CN", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
- {14, "MPA", CODEC_TYPE_AUDIO, CODEC_ID_MP2, 90000, -1},
- {14, "MPA", CODEC_TYPE_AUDIO, CODEC_ID_MP3, 90000, -1},
+ {14, "MPA", CODEC_TYPE_AUDIO, CODEC_ID_MP2, -1, -1},
+ {14, "MPA", CODEC_TYPE_AUDIO, CODEC_ID_MP3, -1, -1},
{15, "G728", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 8000, 1},
{16, "DVI4", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 11025, 1},
{17, "DVI4", CODEC_TYPE_AUDIO, CODEC_ID_NONE, 22050, 1},