On Thu, Jan 15, 2015 at 01:58:40AM +0100, Michael Niedermayer wrote: > This can be extended easily to skip the buffer growing for codecs which do > not need it. > > The added field or a equivalent change is needed as the AVBuffer > size might not match the actually allocated and saftely accessable > memory > > Signed-off-by: Michael Niedermayer <michae...@gmx.at> > --- > libavcodec/avcodec.h | 16 ++++++++++++++++ > libavcodec/utils.c | 19 ++++++++++++++++++- > 2 files changed, 34 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index 99467bb..ed0bee0 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -3128,6 +3128,18 @@ typedef struct AVCodecContext { > * - decoding: set by user through AVOPtions (NO direct access) > */ > char *codec_whitelist; > + > + /** > + * Allocated input size > + * If this is 0 then it is assumed the user allocated size + > FF_INPUT_BUFFER_PADDING_SIZE. > + * Note, many decoders need the padding and will copy/reallocate the > buffer > + * if insufficient padding is provided. > + * Currently only supported for video.
> + * This also requires the removed this stray line locally [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel