int res;
struct HashContext *c = s->priv_data;
c->per_stream = 0;
- c->hashes = av_mallocz_array(1, sizeof(c->hashes));
+ c->hashes = av_mallocz_array(1, sizeof(*c->hashes));
if (!c->hashes)
return AVERROR(ENOMEM);
res = av_hash_alloc(&c->hashes[0], c->hash_name);
int res, i;
struct HashContext *c = s->priv_data;
c->per_stream = 1;
- c->hashes = av_mallocz_array(s->nb_streams, sizeof(c->hashes));
+ c->hashes = av_mallocz_array(s->nb_streams, sizeof(*c->hashes));
if (!c->hashes)
return AVERROR(ENOMEM);
for (i = 0; i < s->nb_streams; i++) {
int res;
struct HashContext *c = s->priv_data;
c->per_stream = 0;
- c->hashes = av_mallocz_array(1, sizeof(c->hashes));
+ c->hashes = av_mallocz_array(1, sizeof(*c->hashes));
if (!c->hashes)
return AVERROR(ENOMEM);
res = av_hash_alloc(&c->hashes[0], c->hash_name);