On Sat, Feb 8, 2014 at 11:04 PM, Justin Ruggles <justin.rugg...@gmail.com> wrote: > From: Paul B Mahol <one...@gmail.com> > > Signed-off-by: Paul B Mahol <one...@gmail.com> > Signed-off-by: Michael Niedermayer <michae...@gmx.at> > Signed-off-by: Justin Ruggles <justin.rugg...@gmail.com> >
Crowded signed-off part! > CC:libav-sta...@libav.org > --- > libavcodec/bytestream.h | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > New functions are added to a public header, so I guess you should bump version.h and probably add an APIChange entry too. Vittorio > diff --git a/libavcodec/bytestream.h b/libavcodec/bytestream.h > index 0f89558..63d61f1 100644 > --- a/libavcodec/bytestream.h > +++ b/libavcodec/bytestream.h > @@ -190,6 +190,16 @@ static av_always_inline int > bytestream2_tell_p(PutByteContext *p) > return (int)(p->buffer - p->buffer_start); > } > > +static av_always_inline int bytestream2_size(GetByteContext *g) > +{ > + return (int)(g->buffer_end - g->buffer_start); > +} > + > +static av_always_inline int bytestream2_size_p(PutByteContext *p) > +{ > + return (int)(p->buffer_end - p->buffer_start); > +} > + > static av_always_inline int bytestream2_seek(GetByteContext *g, > int offset, > int whence) _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel