[FFmpeg-devel] [PATCH] Improve documentation for flush_put_bits()
Stefano Sabatini
stefano.sabatini-lala
Sun Nov 29 11:36:56 CET 2009
On date Saturday 2009-11-28 12:11:06 +0100, Michael Niedermayer encoded:
> On Sat, Nov 28, 2009 at 11:13:43AM +0100, Stefano Sabatini wrote:
> > On date Saturday 2009-04-11 15:18:20 +0200, Diego Biurrun encoded:
> > > On Sat, Apr 11, 2009 at 01:14:37PM +0200, Stefano Sabatini wrote:
> > > > --- ffmpeg.orig/libavcodec/bitstream.h 2009-04-11 11:14:07.000000000 +0200
> > > > +++ ffmpeg/libavcodec/bitstream.h 2009-04-11 13:08:10.000000000 +0200
> > > > @@ -129,7 +129,8 @@
> > > >
> > > > /**
> > > > - * Pads the end of the output stream with zeros.
> > > > + * Flushes the content of the bitstream writer internal buffer, padded
> > > > + * with zeros, to the bitstream.
> > > > */
> > > > static inline void flush_put_bits(PutBitContext *s)
> > >
> > > Still sounds awkward to me. I don't have a good alternative for "flush
> > > to the bitstream" though. Maybe some of the native speakers can help.
> >
> > What about "Writes"? ;-)
> >
> > Patch updated (yes I'm trying to clean up my inbox...).
> >
> > Regards.
> > --
> > FFmpeg = Forgiving Fast Mystic Picky Eccentric Gadget
>
> > put_bits.h | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> > 9e2ae4d031847644108cda96609b78f146fcf27f fix-for-flush-put-bits-doc.patch
> > Index: ffmpeg/libavcodec/put_bits.h
> > ===================================================================
> > --- ffmpeg.orig/libavcodec/put_bits.h 2009-11-28 11:03:02.000000000 +0100
> > +++ ffmpeg/libavcodec/put_bits.h 2009-11-28 11:10:40.000000000 +0100
> > @@ -91,7 +91,8 @@
> > }
> >
> > /**
> > - * Pads the end of the output stream with zeros.
> > + * Writes the content of the bitstream writer internal buffer, padded
> > + * with zeros up to the next byte boundary, to the bitstream.
>
> not every writer has a internal buffer
Right, changed approach, now I believe should be more clear.
Regards.
--
FFmpeg = Furious Friendly Minimal Puristic Extensive Glue
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bs-improve-flush-put-bits-doc.patch
Type: text/x-diff
Size: 503 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091129/96a2745d/attachment.patch>
More information about the ffmpeg-devel
mailing list