Re: [FFmpeg-devel] [PATCH 1/4] avformat/hashenc: use an array of hashes

2019-08-12 Thread Paul B Mahol
On Mon, Aug 12, 2019 at 2:56 PM Moritz Barsnick wrote: > On Sun, Aug 11, 2019 at 15:57:46 +0200, Nicolas George wrote: > > > +c->hashes = av_malloc_array(1, sizeof(c->hashes)); > > > +if (!c->hashes) > > > +return AVERROR(ENOMEM); > > > +res = av_hash_alloc(&c->hashes[0], c->h

Re: [FFmpeg-devel] [PATCH 1/4] avformat/hashenc: use an array of hashes

2019-08-12 Thread Moritz Barsnick
On Sun, Aug 11, 2019 at 15:57:46 +0200, Nicolas George wrote: > > +c->hashes = av_malloc_array(1, sizeof(c->hashes)); > > +if (!c->hashes) > > +return AVERROR(ENOMEM); > > +res = av_hash_alloc(&c->hashes[0], c->hash_name); > > +if (res < 0) { > > +av_freep(&c->hashes

Re: [FFmpeg-devel] [PATCH 1/4] avformat/hashenc: use an array of hashes

2019-08-11 Thread Nicolas George
Moritz Barsnick (12019-08-11): > Only the first one used currently. > > Signed-off-by: Moritz Barsnick > --- > libavformat/hashenc.c | 58 +++ > 1 file changed, 36 insertions(+), 22 deletions(-) > > diff --git a/libavformat/hashenc.c b/libavformat/hashenc

[FFmpeg-devel] [PATCH 1/4] avformat/hashenc: use an array of hashes

2019-08-11 Thread Moritz Barsnick
Only the first one used currently. Signed-off-by: Moritz Barsnick --- libavformat/hashenc.c | 58 +++ 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c index 06fc085d18..7f83df5cca 100644 --- a/li