]> git.sesse.net Git - ffmpeg/commitdiff
libavformat/adtsenc: Increase ADTS_MAX_FRAME_BYTES from 8k to 16k
authorChris Ribble <chris.ribble@resi.io>
Sun, 25 Apr 2021 16:47:29 +0000 (11:47 -0500)
committerLynne <dev@lynne.ee>
Sun, 25 Apr 2021 17:16:40 +0000 (19:16 +0200)
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>
libavformat/adtsenc.c

index 3595cb3bb23995e7921c3394283296de8a25b1bd..ae1b1b364c4b3d198d4d5a5cbbf1161381e0994d 100644 (file)
@@ -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)
 {