}
static int
-_video_filters_get_filters(TVHContext *self, AVDictionary **opts, char **filters)
+_video_filters_get_filters(TVHContext *self, char **filters)
{
char download[48];
char deint[64];
int ohw = _video_filters_hw_pix_fmt(self->oavctx->pix_fmt);
int filter_scale = (self->iavctx->height != self->oavctx->height);
int filter_deint = ((TVHVideoCodecProfile *)self->profile)->deinterlace;
- int filter_download = 0, filter_upload = 0;
+ int filter_download = 0;
+ int filter_upload = 0;
#if ENABLE_HWACCELS
int filter_denoise = ((TVHVideoCodecProfile *)self->profile)->filter_hw_denoise;
int filter_sharpness = ((TVHVideoCodecProfile *)self->profile)->filter_hw_sharpness;
static int
-tvh_video_context_open_filters(TVHContext *self, AVDictionary **opts)
+tvh_video_context_open_filters(TVHContext *self)
{
char source_args[128];
char *filters = NULL;
}
// filters
- if (_video_filters_get_filters(self, opts, &filters)) {
+ if (_video_filters_get_filters(self, &filters)) {
return -1;
}
case OPEN_ENCODER:
return tvh_video_context_open_encoder(self, opts);
case OPEN_ENCODER_POST:
- return tvh_video_context_open_filters(self, opts);
+ return tvh_video_context_open_filters(self);
default:
break;
}
return -1;
}
- AVFilterLink *outlink = NULL;
+ const AVFilterLink *outlink = NULL;
#if LIBAVUTIL_VERSION_MAJOR >= 58
int64_t *frame_duration = &avframe->duration;
#else