[FFmpeg-devel] [PATCH 06/11] avformat/rtpdec_xiph: Don't add padding twice
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Tue Dec 10 23:59:50 EET 2019
ff_alloc_extradata already adds padding to extradata.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavformat/rtpdec_xiph.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index 574508affb..1bd48fa562 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -260,9 +260,8 @@ parse_packed_headers(AVFormatContext *s,
/* allocate extra space:
* -- length/255 +2 for xiphlacing
- * -- one for the '2' marker
- * -- AV_INPUT_BUFFER_PADDING_SIZE required */
- extradata_alloc = length + length/255 + 3 + AV_INPUT_BUFFER_PADDING_SIZE;
+ * -- one for the '2' marker */
+ extradata_alloc = length + length / 255 + 3;
if (ff_alloc_extradata(par, extradata_alloc)) {
av_log(s, AV_LOG_ERROR, "Out of memory\n");
--
2.20.1
More information about the ffmpeg-devel
mailing list