return -1;
h->cur_frame = -1;
- if( cli_input.picture_alloc( &h->pic, info->csp, info->width, info->height ) )
+ if( cli_input.picture_alloc( &h->pic, *handle, info->csp, info->width, info->height ) )
return -1;
h->hin = *handle;
static void free_filter( hnd_t handle )
{
source_hnd_t *h = handle;
- cli_input.picture_clean( &h->pic );
+ cli_input.picture_clean( &h->pic, h->hin );
cli_input.close_file( h->hin );
free( h );
}