- Removed unused `opts` parameter from _video_filters_get_filters() and tvh_video_context_open_filters().
- Updated all call sites accordingly.
- Split combined variable declaration for clarity.
- Marked AVFilterLink pointer as const to reflect read-only use.
No functional changes — purely code hygiene fallout linked to PR #1859
-_video_filters_get_filters(TVHContext *self, AVDictionary **opts, char **filters)
+_video_filters_get_filters(TVHContext *self, char **filters)
{
char download[48];
char deint[64];
{
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 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;
#if ENABLE_HWACCELS
int filter_denoise = ((TVHVideoCodecProfile *)self->profile)->filter_hw_denoise;
int filter_sharpness = ((TVHVideoCodecProfile *)self->profile)->filter_hw_sharpness;
-tvh_video_context_open_filters(TVHContext *self, AVDictionary **opts)
+tvh_video_context_open_filters(TVHContext *self)
{
char source_args[128];
char *filters = NULL;
{
char source_args[128];
char *filters = NULL;
- if (_video_filters_get_filters(self, opts, &filters)) {
+ if (_video_filters_get_filters(self, &filters)) {
case OPEN_ENCODER:
return tvh_video_context_open_encoder(self, opts);
case OPEN_ENCODER_POST:
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);
- AVFilterLink *outlink = NULL;
+ const AVFilterLink *outlink = NULL;
#if LIBAVUTIL_VERSION_MAJOR >= 58
int64_t *frame_duration = &avframe->duration;
#else
#if LIBAVUTIL_VERSION_MAJOR >= 58
int64_t *frame_duration = &avframe->duration;
#else