]> git.sesse.net Git - vlc/commitdiff
SAP: add new payload types
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Feb 2009 18:14:32 +0000 (20:14 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Feb 2009 18:14:32 +0000 (20:14 +0200)
modules/access/rtp/rtp.c
modules/services_discovery/sap.c

index eb10279be40d66e2debb4e7dedb5074f9689a593..d2e2e07fe4fe9bba6f6f3c1ad0454aedded146ff 100644 (file)
@@ -602,6 +602,7 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
         .number = ptype,
     };
 
+    /* Remember to keep this in sync with modules/services_discovery/sap.c */
     switch (ptype)
     {
       case 0:
index 5859be5f29083ac448f5ff3849ef49406ec5f440..8552994d80bc595d5f7418f9fc20b5d28e24defc 100644 (file)
@@ -290,9 +290,11 @@ static bool IsWellKnownPayload (int type)
     switch (type)
     {   /* Should be in sync with modules/demux/rtp.c */
         case  0: /* PCMU/8000 */
+        case  3:
         case  8: /* PCMA/8000 */
         case 10: /* L16/44100/2 */
         case 11: /* L16/44100 */
+        case 12:
         case 14: /* MPA/90000 */
         case 32: /* MPV/90000 */
         case 33: /* MP2/90000 */