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

Function ff_nvdec_decode_uninit

libavcodec/nvdec.c:259–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259int ff_nvdec_decode_uninit(AVCodecContext *avctx)
260{
261 NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
262
263 av_freep(&ctx->bitstream_internal);
264 ctx->bitstream = NULL;
265 ctx->bitstream_len = 0;
266 ctx->bitstream_allocated = 0;
267
268 av_freep(&ctx->slice_offsets);
269 ctx->nb_slices = 0;
270 ctx->slice_offsets_allocated = 0;
271
272 av_refstruct_unref(&ctx->decoder);
273 av_refstruct_pool_uninit(&ctx->decoder_pool);
274
275 return 0;
276}
277
278static void nvdec_free_dummy(struct AVHWFramesContext *ctx)
279{

Callers 1

ff_nvdec_decode_initFunction · 0.85

Calls 3

av_freepFunction · 0.85
av_refstruct_unrefFunction · 0.85
av_refstruct_pool_uninitFunction · 0.85

Tested by

no test coverage detected