--- ffmpeg-4.0.1/libavcodec/Makefile	2018-04-20 12:02:55.000000000 +0200
+++ src/libavcodec/Makefile	2018-07-13 18:43:43.409708184 +0200
@@ -22,6 +22,7 @@
 
 OBJS = ac3_parser.o                                                     \
        adts_parser.o                                                    \
+       aptx_parser.o                                                    \
        allcodecs.o                                                      \
        avdct.o                                                          \
        avpacket.o                                                       \
@@ -994,6 +995,7 @@
                                           mpeg4audio.o
 OBJS-$(CONFIG_AC3_PARSER)              += ac3tab.o aac_ac3_parser.o
 OBJS-$(CONFIG_ADX_PARSER)              += adx_parser.o adx.o
+OBJS-$(CONFIG_APTX_PARSER)             += aptx_parser.o
 OBJS-$(CONFIG_BMP_PARSER)              += bmp_parser.o
 OBJS-$(CONFIG_CAVSVIDEO_PARSER)        += cavs_parser.o
 OBJS-$(CONFIG_COOK_PARSER)             += cook_parser.o
--- ffmpeg-4.0.1/libavcodec/aptx_parser.c	1970-01-01 01:00:00.000000000 +0100
+++ src/libavcodec/aptx_parser.c	2018-07-13 18:40:15.503706841 +0200
@@ -0,0 +1,20 @@
+#include <stdint.h>
+#include "parser.h"
+
+typedef struct AptxParseContext {
+} AptxParseContext;
+
+static int aptx_parse(AVCodecParserContext *s1, AVCodecContext *avctx,
+		      const uint8_t **poutbuf, int *poutbuf_size,
+		      const uint8_t *buf, int buf_size)
+{
+    *poutbuf = buf;
+    *poutbuf_size = buf_size;
+    return buf_size;
+}
+
+AVCodecParser ff_aptx_parser = {
+	.codec_ids	= { AV_CODEC_ID_APTX, AV_CODEC_ID_APTX_HD },
+	.priv_data_size	= sizeof(AptxParseContext),
+	.parser_parse	= aptx_parse,
+};
--- ffmpeg-4.0.1/libavcodec/parser.c	2018-04-20 12:02:56.000000000 +0200
+++ src/libavcodec/parser.c	2018-07-12 22:47:01.827276082 +0200
@@ -37,6 +37,7 @@
 extern AVCodecParser ff_aac_latm_parser;
 extern AVCodecParser ff_ac3_parser;
 extern AVCodecParser ff_adx_parser;
+extern AVCodecParser ff_aptx_parser;
 extern AVCodecParser ff_bmp_parser;
 extern AVCodecParser ff_cavsvideo_parser;
 extern AVCodecParser ff_cook_parser;
