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

Function preinit

libavfilter/af_aresample.c:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} AResampleContext;
47
48static av_cold int preinit(AVFilterContext *ctx)
49{
50 AResampleContext *aresample = ctx->priv;
51
52 aresample->next_pts = AV_NOPTS_VALUE;
53 aresample->swr = swr_alloc();
54 if (!aresample->swr)
55 return AVERROR(ENOMEM);
56
57 return 0;
58}
59
60static av_cold void uninit(AVFilterContext *ctx)
61{

Callers

nothing calls this directly

Calls 1

swr_allocFunction · 0.85

Tested by

no test coverage detected