MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / framehash_init

Function framehash_init

libavformat/hashenc.c:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256static int framehash_init(struct AVFormatContext *s)
257{
258 int res;
259 struct HashContext *c = s->priv_data;
260 c->per_stream = 0;
261 c->hashes = av_mallocz(sizeof(*c->hashes));
262 if (!c->hashes)
263 return AVERROR(ENOMEM);
264 res = av_hash_alloc(&c->hashes[0], c->hash_name);
265 if (res < 0)
266 return res;
267 return 0;
268}
269
270static int framehash_write_header(struct AVFormatContext *s)
271{

Callers

nothing calls this directly

Calls 2

av_hash_allocFunction · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected