mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user