ff_alloc_extradata already adds padding to extradata. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".