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

Function amf_decode_close

libavcodec/amfdec.c:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static int amf_decode_close(AVCodecContext *avctx)
224{
225 AMFDecoderContext *ctx = avctx->priv_data;
226
227 if (ctx->decoder) {
228 ctx->decoder->pVtbl->Terminate(ctx->decoder);
229 ctx->decoder->pVtbl->Release(ctx->decoder);
230 ctx->decoder = NULL;
231 }
232
233 av_buffer_unref(&ctx->device_ctx_ref);
234 av_packet_free(&ctx->in_pkt);
235
236 return 0;
237}
238
239static int amf_init_frames_context(AVCodecContext *avctx, int sw_format, int new_width, int new_height)
240{

Callers 1

amf_decode_initFunction · 0.85

Calls 3

av_buffer_unrefFunction · 0.85
av_packet_freeFunction · 0.85
ReleaseMethod · 0.45

Tested by

no test coverage detected