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

Function input_init

ffplay.c:1614–1632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614static int input_init(AVFilterContext *ctx, const char *args, void *opaque)
1615{
1616 FilterPriv *priv = ctx->priv;
1617 AVCodecContext *codec;
1618 if(!opaque) return -1;
1619
1620 priv->is = opaque;
1621 codec = priv->is->video_st->codec;
1622 codec->opaque = ctx;
1623 if(codec->codec->capabilities & CODEC_CAP_DR1) {
1624 priv->use_dr1 = 1;
1625 codec->get_buffer = input_get_buffer;
1626 codec->release_buffer = input_release_buffer;
1627 }
1628
1629 priv->frame = avcodec_alloc_frame();
1630
1631 return 0;
1632}
1633
1634static void input_uninit(AVFilterContext *ctx)
1635{

Callers

nothing calls this directly

Calls 1

avcodec_alloc_frameFunction · 0.85

Tested by

no test coverage detected