[FFmpeg-devel] [PATCH] avformat/argo_cvg: Fix checksum

Michael Niedermayer michael at niedermayer.cc
Tue Feb 15 23:17:37 EET 2022


On Wed, Feb 16, 2022 at 12:25:52AM +1000, Zane van Iperen wrote:
> 
> 
> On 15/2/22 23:05, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >   libavformat/argo_cvg.c | 15 +++++----------
> >   libavformat/version.h  |  2 +-
> >   2 files changed, 6 insertions(+), 11 deletions(-)
> > 
> > diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c
> > index c5da32536d..dfdf126c17 100644
> > --- a/libavformat/argo_cvg.c
> > +++ b/libavformat/argo_cvg.c
> > @@ -335,19 +335,14 @@ static int argo_cvg_write_trailer(AVFormatContext *s)
> >       ArgoCVGMuxContext *ctx = s->priv_data;
> >       int64_t ret;
> > +    ctx->checksum +=  (ctx->size      & 255)
> > +                   + ((ctx->size>> 8) & 255)
> > +                   + ((ctx->size>>16) & 255)
> > +                   +  (ctx->size>>24);
> > +
> 
> ...because of course it's that simple. How did I miss that?
> No matter, lgtm!

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- 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/20220215/bce10bb0/attachment.sig>


More information about the ffmpeg-devel mailing list