Re: [FFmpeg-devel] [PATCH] lavf/avc: add buffer padding to extradata allocation
On 05.02.2015 03:04, Michael Niedermayer wrote: On Thu, Feb 05, 2015 at 01:06:33AM +0100, Lukasz Marek wrote: ff_avc_write_annexb_extradata() allocates extradata, but don't add FF_INPUT_BUFFER_PADDING_SIZE value Signed-off-by: Lukasz Marek --- libavformat/avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) LGTM pushed ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH] lavf/avc: add buffer padding to extradata allocation
On Thu, Feb 05, 2015 at 01:06:33AM +0100, Lukasz Marek wrote: > ff_avc_write_annexb_extradata() allocates extradata, but don't add > FF_INPUT_BUFFER_PADDING_SIZE value > > Signed-off-by: Lukasz Marek > --- > libavformat/avc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Into a blind darkness they enter who follow after the Ignorance, they as if into a greater darkness enter who devote themselves to the Knowledge alone. -- Isha Upanishad signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH] lavf/avc: add buffer padding to extradata allocation
ff_avc_write_annexb_extradata() allocates extradata, but don't add FF_INPUT_BUFFER_PADDING_SIZE value Signed-off-by: Lukasz Marek --- libavformat/avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avc.c b/libavformat/avc.c index c927b47..9d843e0 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -180,7 +180,7 @@ int ff_avc_write_annexb_extradata(const uint8_t *in, uint8_t **buf, int *size) if (11 + sps_size + pps_size > *size) return AVERROR_INVALIDDATA; out_size = 8 + sps_size + pps_size; -out = av_mallocz(out_size); +out = av_mallocz(out_size + FF_INPUT_BUFFER_PADDING_SIZE); if (!out) return AVERROR(ENOMEM); AV_WB32(&out[0], 0x0001); -- 1.9.1 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel