mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
rtpenc: Merge the h264 and hevc packetizers
They share a great deal of common structure; only a few minor bits in the headers differ. This also fixes an off-by-one in sending of the last fragment of large HEVC nals (where it previously sent len+2 bytes, even if it should have been len+RTP_HEVC_HEADERS_SIZE aka len+3). Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -81,12 +81,11 @@ typedef struct RTPMuxContext RTPMuxContext;
|
||||
|
||||
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m);
|
||||
|
||||
void ff_rtp_send_h264(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_h261(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf1, int size,
|
||||
const uint8_t *mb_info, int mb_info_size);
|
||||
void ff_rtp_send_hevc(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size);
|
||||
void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size);
|
||||
void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size);
|
||||
|
||||
Reference in New Issue
Block a user