diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2012-09-23 16:17:41 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-23 21:58:41 +0300 |
commit | cee1950bbb44acd215efd2101fb52d9605701969 (patch) | |
tree | d6562ceda1207d6d8084898c9f53ccecd3bc9d4f /libavformat/rtpenc.c | |
parent | 71908f0838126146cbce025dd37787e1b9ca171d (diff) | |
download | ffmpeg-cee1950bbb44acd215efd2101fb52d9605701969.tar.gz |
rtp: Packetization of JPEG (RFC 2435)
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index eab765499b..33a1f05dd7 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -75,6 +75,7 @@ static int is_supported(enum AVCodecID id) case AV_CODEC_ID_ADPCM_G722: case AV_CODEC_ID_ADPCM_G726: case AV_CODEC_ID_ILBC: + case AV_CODEC_ID_MJPEG: return 1; default: return 0; @@ -524,6 +525,9 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) case AV_CODEC_ID_ILBC: rtp_send_ilbc(s1, pkt->data, size); break; + case AV_CODEC_ID_MJPEG: + ff_rtp_send_jpeg(s1, pkt->data, size); + break; default: /* better than nothing : send the codec raw data */ rtp_send_raw(s1, pkt->data, size); |