| 1612 | } |
| 1613 | |
| 1614 | static 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 | |
| 1634 | static void input_uninit(AVFilterContext *ctx) |
| 1635 | { |
nothing calls this directly
no test coverage detected