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

Function avcodec_alloc_context2

libavcodec/options.c:456–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456AVCodecContext *avcodec_alloc_context2(enum AVMediaType codec_type){
457 AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
458
459 if(avctx==NULL) return NULL;
460
461 avcodec_get_context_defaults2(avctx, codec_type);
462
463 return avctx;
464}
465
466void avcodec_get_context_defaults(AVCodecContext *s){
467 avcodec_get_context_defaults2(s, AVMEDIA_TYPE_UNKNOWN);

Callers 3

mainFunction · 0.85
mainFunction · 0.85
avcodec_alloc_contextFunction · 0.85

Calls 2

av_mallocFunction · 0.85

Tested by

no test coverage detected