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

Function wavpack_decode_end

libavcodec/wavpack.c:1074–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074static av_cold int wavpack_decode_end(AVCodecContext *avctx)
1075{
1076 WavpackContext *s = avctx->priv_data;
1077
1078 for (int i = 0; i < s->fdec_num; i++)
1079 av_freep(&s->fdec[i]);
1080 av_freep(&s->fdec);
1081 s->fdec_num = 0;
1082
1083 av_refstruct_pool_uninit(&s->progress_pool);
1084 wv_dsd_reset(s, 0);
1085
1086 return 0;
1087}
1088
1089static int wavpack_decode_block(AVCodecContext *avctx, AVFrame *frame, int block_no,
1090 const uint8_t *buf, int buf_size, int *new_progress)

Callers

nothing calls this directly

Calls 3

av_freepFunction · 0.85
av_refstruct_pool_uninitFunction · 0.85
wv_dsd_resetFunction · 0.85

Tested by

no test coverage detected