rtpenc: Merge the h264 and hevc packetizers
authorMartin Storsjö <martin@martin.st>
Mon, 23 Feb 2015 21:06:01 +0000 (23:06 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 24 Feb 2015 14:25:43 +0000 (16:25 +0200)
commitc82bf15dca00f67a701d126e47ea9075fc9459cb
treee3764fddb5f6234a4465ff3e9cce69678e106192
parent3567b91e49c6ae101c9a35c90f46b8ad9890ac15
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>
libavformat/Makefile
libavformat/rtpenc.c
libavformat/rtpenc.h
libavformat/rtpenc_h264.c [deleted file]
libavformat/rtpenc_h264_hevc.c [new file with mode: 0644]
libavformat/rtpenc_hevc.c [deleted file]