Browse code

rtpdec: Allow dynamic payload handlers to handle static payload types, too

Originally committed as revision 25890 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö authored on 2010/12/06 04:38:55
Showing 1 changed files
... ...
@@ -116,6 +116,9 @@ struct RTPDynamicProtocolHandler_s {
116 116
     const char enc_name[50];    /* XXX: still why 50 ? ;-) */
117 117
     enum AVMediaType codec_type;
118 118
     enum CodecID codec_id;
119
+    int static_payload_id; /* 0 means no payload id is set. 0 is a valid
120
+                            * payload ID (PCMU), too, but that format doesn't
121
+                            * require any custom depacketization code. */
119 122
 
120 123
     // may be null
121 124
     int (*parse_sdp_a_line) (AVFormatContext *s,