summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg4audio.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-14 00:09:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-14 00:12:34 +0200
commit93cfa7d1692c25cff045f99ba1af2c9e5772c45e (patch)
tree4e82c50f827d30a6a318daf623b5cd9dc46e28e4 /libavcodec/mpeg4audio.h
parentadb7372f7495927a226edf9b8e1d0ac9453985ea (diff)
downloadffmpeg-93cfa7d1692c25cff045f99ba1af2c9e5772c45e.tar.gz
avcodec/mpeg4audio: add some padding/alignment to MAX_PCE_SIZE
This avoids potential accesses over the end Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg4audio.h')
-rw-r--r--libavcodec/mpeg4audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg4audio.h b/libavcodec/mpeg4audio.h
index a3d37247f7..8239081747 100644
--- a/libavcodec/mpeg4audio.h
+++ b/libavcodec/mpeg4audio.h
@@ -102,7 +102,7 @@ enum AudioObjectType {
AOT_USAC, ///< N Unified Speech and Audio Coding
};
-#define MAX_PCE_SIZE 304 ///<Maximum size of a PCE including the 3-bit ID_PCE
+#define MAX_PCE_SIZE 320 ///<Maximum size of a PCE including the 3-bit ID_PCE
///<marker and the comment
int avpriv_copy_pce_data(PutBitContext *pb, GetBitContext *gb);