return 0;
}
+#endif
static void hash_free(struct AVFormatContext *s)
{
}
av_freep(&c->hashes);
}
-#endif
#if CONFIG_HASH_MUXER
static const AVClass hashenc_class = {
avio_printf(s->pb, "\n");
return 0;
}
-
-static void framehash_free(struct AVFormatContext *s)
-{
- struct HashContext *c = s->priv_data;
- if (c->hashes)
- av_hash_freep(&c->hashes[0]);
- av_freep(&c->hashes);
-}
#endif
#if CONFIG_FRAMEHASH_MUXER
.init = framehash_init,
.write_header = framehash_write_header,
.write_packet = framehash_write_packet,
- .deinit = framehash_free,
+ .deinit = hash_free,
.flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT |
AVFMT_TS_NEGATIVE,
.priv_class = &framehash_class,
.init = framehash_init,
.write_header = framehash_write_header,
.write_packet = framehash_write_packet,
- .deinit = framehash_free,
+ .deinit = hash_free,
.flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT |
AVFMT_TS_NEGATIVE,
.priv_class = &framemd5_class,