| 254 | } |
| 255 | |
| 256 | static 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 | |
| 270 | static int framehash_write_header(struct AVFormatContext *s) |
| 271 | { |
nothing calls this directly
no test coverage detected