summaryrefslogtreecommitdiff
path: root/libavformat/adtsenc.c
diff options
context:
space:
mode:
authorChris Ribble <chris.ribble@resi.io>2021-04-25 11:47:29 -0500
committerLynne <dev@lynne.ee>2021-04-25 19:16:40 +0200
commitc9fed043f106e7475d086f89b32a37cc4d2a7269 (patch)
treebf81021eac7b2f09232184dc54f7b852b29a4997 /libavformat/adtsenc.c
parentc8197f73e684b0edc450f3dc2b2b4b3fb9dedd0d (diff)
downloadffmpeg-c9fed043f106e7475d086f89b32a37cc4d2a7269.tar.gz
libavformat/adtsenc: Increase ADTS_MAX_FRAME_BYTES from 8k to 16k
ADTS frames may contain up to 768 bytes per channel. With 16 channels, this is 12k, which cannot fit into the maximum 8k buffer. Signed-off-by: Chris Ribble <chris.ribble@resi.io>
Diffstat (limited to 'libavformat/adtsenc.c')
-rw-r--r--libavformat/adtsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
index 3595cb3bb2..ae1b1b364c 100644
--- a/libavformat/adtsenc.c
+++ b/libavformat/adtsenc.c
@@ -44,7 +44,7 @@ typedef struct ADTSContext {
uint8_t pce_data[MAX_PCE_SIZE];
} ADTSContext;
-#define ADTS_MAX_FRAME_BYTES ((1 << 13) - 1)
+#define ADTS_MAX_FRAME_BYTES ((1 << 14) - 1)
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size)
{