diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-08-16 14:21:17 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-08-16 14:21:17 +0000 |
commit | 7b18d94cb3c44cab320f4ea177760fa14d82fe30 (patch) | |
tree | 73ffe59fdae8bfee73673fff8b4503841515aa32 /libavformat/rtpenc.c | |
parent | 63638a3c4a6c8fec03e121a0bfbfa555ff6d4956 (diff) | |
download | ffmpeg-7b18d94cb3c44cab320f4ea177760fa14d82fe30.tar.gz |
Add RTP packetization of VP8
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24797 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 9335e8c1da..a6ba3e50b1 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -55,6 +55,7 @@ static int is_supported(enum CodecID id) case CODEC_ID_AMR_WB: case CODEC_ID_VORBIS: case CODEC_ID_THEORA: + case CODEC_ID_VP8: return 1; default: return 0; @@ -144,6 +145,9 @@ static int rtp_write_header(AVFormatContext *s1) s->max_payload_size -= 6; // ident+frag+tdt/vdt+pkt_num+pkt_length s->num_frames = 0; goto defaultcase; + case CODEC_ID_VP8: + av_log(s1, AV_LOG_WARNING, "RTP VP8 payload is still experimental\n"); + break; case CODEC_ID_AMR_NB: case CODEC_ID_AMR_WB: if (!s->max_frames_per_packet) @@ -407,6 +411,9 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) case CODEC_ID_THEORA: ff_rtp_send_xiph(s1, pkt->data, size); break; + case CODEC_ID_VP8: + ff_rtp_send_vp8(s1, pkt->data, size); + break; default: /* better than nothing : send the codec raw data */ rtp_send_raw(s1, pkt->data, size); |