[SCM] libav/experimental: Add support for mp3 over RTP in rtpdec.c

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:56:21 UTC 2013


The following commit has been merged in the experimental branch:
commit 76faff6ef2f3ccdbee5e30cf7d002e540d908f6e
Author: Luca Abeni <lucabe72 at email.it>
Date:   Wed Dec 23 21:23:26 2009 +0000

    Add support for mp3 over RTP in rtpdec.c
    
    Originally committed as revision 20916 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 48995e7..79c3535 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -486,6 +486,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
         // at this point, the RTP header has been stripped;  This is ASSUMING that there is only 1 CSRC, which in't wise.
         switch(st->codec->codec_id) {
         case CODEC_ID_MP2:
+        case CODEC_ID_MP3:
             /* better than nothing: skip mpeg audio RTP header */
             if (len <= 4)
                 return -1;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list