Hi, On Mon, Mar 19, 2012 at 7:08 PM, Paul B Mahol <[email protected]> wrote: > > Signed-off-by: Paul B Mahol <[email protected]> > --- > libavcodec/bytestream.h | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/libavcodec/bytestream.h b/libavcodec/bytestream.h > index 7fb0f7d..588f8ba 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 unsigned int bytestream2_size(GetByteContext *g) > +{ > + return (unsigned int)(g->buffer_end - g->buffer_start); > +} > + > +static av_always_inline unsigned int bytestream2_size_p(PutByteContext *p) > +{ > + return (unsigned int)(p->buffer_end - p->buffer_start); > +}
<random comment>We should really do something about this GetByte/PutByte duplication perhaps at some point...</random comment> Patch itself OK. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
