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).
c82bf15 rtpenc: Merge the h264 and hevc packetizers
libavformat/Makefile | 3 +-
libavformat/rtpenc.c | 4 +-
libavformat/rtpenc.h | 3 +-
libavformat/rtpenc_h264.c | 136 --------------------------
libavformat/rtpenc_h264_hevc.c | 207 ++++++++++++++++++++++++++++++++++++++++
libavformat/rtpenc_hevc.c | 170 ---------------------------------
6 files changed, 211 insertions(+), 312 deletions(-)
Upstream: git.libav.org