[FFmpeg-devel] [PATCH 04/12] all: Use put_bytes_output() instead of put_bits_ptr - pb->buf
Michael Niedermayer
michael at niedermayer.cc
Mon Mar 10 22:23:25 EET 2025
Hi Andreas
On Sun, Mar 09, 2025 at 07:18:34PM +0100, Andreas Rheinhardt wrote:
> Andreas Rheinhardt:
> > Avoids accessing internals of PutBitContext.
[...]
> > @@ -323,7 +323,7 @@ static int swf_write_header(AVFormatContext *s)
> > put_bits(&p, 5, 0);
> >
> > flush_put_bits(&p);
> > - avio_write(pb, buf1, put_bits_ptr(&p) - p.buf);
> > + avio_write(pb, buf1, put_bytes_output(&p));
> >
> > put_swf_end_tag(s);
> > }
>
> Will apply tomorrow unless there are objections.
i like the new code more
thanks for improving this and other things
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250310/5735ffa4/attachment.sig>
More information about the ffmpeg-devel
mailing list