Commit 925bcf8b authored by lucabe's avatar lucabe

Add support for mp3 over RTP in rtpdec.c


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20916 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cf3bfbc3
...@@ -486,6 +486,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, ...@@ -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. // 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) { switch(st->codec->codec_id) {
case CODEC_ID_MP2: case CODEC_ID_MP2:
case CODEC_ID_MP3:
/* better than nothing: skip mpeg audio RTP header */ /* better than nothing: skip mpeg audio RTP header */
if (len <= 4) if (len <= 4)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment