]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Reduce ADTS header size for better compatibility
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 21 Nov 2022 13:03:00 +0000 (14:03 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 13:03:00 +0000 (14:03 +0100)
src/transcoding/transcode/helpers.c

index f8d087de53af82a1d27b8cf903e1dacc31be0060..bd23c3e5e991c4e9fc05a20089387ba49fd35483 100644 (file)
@@ -363,7 +363,7 @@ tvh_aac_pack_adts_header(TVHContext *self, pktbuf_t *pb)
 static th_pkt_t *
 tvh_aac_pack(TVHContext *self, AVPacket *avpkt)
 {
-    static const size_t header_size = 9, max_size = ((1 << 14) - 1);
+    static const size_t header_size = 7, max_size = ((1 << 14) - 1);
     size_t pkt_size = 0;
     th_pkt_t *pkt = NULL;