| 257 | } |
| 258 | |
| 259 | int 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 | |
| 278 | static void nvdec_free_dummy(struct AVHWFramesContext *ctx) |
| 279 | { |
no test coverage detected