Message ID | 20191210215955.11178-6-andreas.rheinhardt@gmail.com |
---|---|
State | New |
Headers | show |
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");
ff_alloc_extradata already adds padding to extradata. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- libavformat/rtpdec_xiph.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)