Add support for H.264 video in the RTP muxer

Originally committed as revision 11589 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Luca Abeni
2008-01-21 14:01:57 +00:00
parent afecbec22b
commit f79bfe481d
4 changed files with 89 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
#include "rtp_internal.h"
#include "rtp_mpv.h"
#include "rtp_aac.h"
#include "rtp_h264.h"
//#define DEBUG
@@ -334,6 +335,9 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
case CODEC_ID_MPEG2TS:
rtp_send_mpegts_raw(s1, buf1, size);
break;
case CODEC_ID_H264:
ff_rtp_send_h264(s1, buf1, size);
break;
default:
/* better than nothing : send the codec raw data */
rtp_send_raw(s1, buf1, size);