~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to libavformat/rtp.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.4.1)
  • mto: (1.3.11 sid) (26.1.1 quantal-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120112223000-s1reiy1e28hnix42
Tags: upstream-0.8~beta2
ImportĀ upstreamĀ versionĀ 0.8~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef AVFORMAT_RTP_H
22
22
#define AVFORMAT_RTP_H
23
23
 
 
24
#include "libavformat/avformat.h"
24
25
#include "libavcodec/avcodec.h"
25
26
 
26
27
/**
27
 
 * Return the payload type for a given codec.
 
28
 * Return the payload type for a given codec used in the given format context.
28
29
 *
 
30
 * @param fmt   The context of the format
29
31
 * @param codec The context of the codec
30
 
 * @return In case of unknown payload type or dynamic payload type, a
31
 
 * negative value is returned; otherwise, the payload type (the 'PT' field
32
 
 * in the RTP header) is returned.
 
32
 * @return The payload type (the 'PT' field in the RTP header).
33
33
 */
34
 
int ff_rtp_get_payload_type(AVCodecContext *codec);
 
34
int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec);
35
35
 
36
36
/**
37
37
 * Initialize a codec context based on the payload type.
72
72
#define RTP_VERSION 2
73
73
#define RTP_MAX_SDES 256   /**< maximum text length for SDES */
74
74
 
75
 
/* RTCP paquets use 0.5 % of the bandwidth */
 
75
/* RTCP packets use 0.5% of the bandwidth */
76
76
#define RTCP_TX_RATIO_NUM 5
77
77
#define RTCP_TX_RATIO_DEN 1000
78
78