Add support for H.264 video in the RTP muxer
[ffmpeg.git] / libavformat / rtpenc.c
index 291d474..9e62c65 100644 (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);