Mercurial > libavformat.hg
comparison rtpdec.c @ 5472:a24f34fa4186 libavformat
Add support for mp3 over RTP in rtpdec.c
author | lucabe |
---|---|
date | Wed, 23 Dec 2009 21:23:26 +0000 |
parents | 13a2a1a475d5 |
children | 96d885709963 |
comparison
equal
deleted
inserted
replaced
5471:b5af21b34101 | 5472:a24f34fa4186 |
---|---|
484 s->st, pkt, ×tamp, buf, len, flags); | 484 s->st, pkt, ×tamp, buf, len, flags); |
485 } else { | 485 } else { |
486 // at this point, the RTP header has been stripped; This is ASSUMING that there is only 1 CSRC, which in't wise. | 486 // at this point, the RTP header has been stripped; This is ASSUMING that there is only 1 CSRC, which in't wise. |
487 switch(st->codec->codec_id) { | 487 switch(st->codec->codec_id) { |
488 case CODEC_ID_MP2: | 488 case CODEC_ID_MP2: |
489 case CODEC_ID_MP3: | |
489 /* better than nothing: skip mpeg audio RTP header */ | 490 /* better than nothing: skip mpeg audio RTP header */ |
490 if (len <= 4) | 491 if (len <= 4) |
491 return -1; | 492 return -1; |
492 h = AV_RB32(buf); | 493 h = AV_RB32(buf); |
493 len -= 4; | 494 len -= 4; |