Description: Autogenerated patch header for a single-debian-patch file.
 The delta against upstream is either kept as a single patch, or maintained
 in some VCS, and exported as a single patch instead of more manageable
 atomic patches.
Forwarded: not-needed

---
--- /dev/null
+++ libmedia-convert-perl-1.1.0/.gitlab-ci.yml
@@ -0,0 +1,76 @@
+---
+variables:
+  SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 1
+  SALSA_CI_DISABLE_BUILD_PACKAGE_I386: 1
+include:
+- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
+
+stages:
+- upstream
+- provisioning
+- build
+- publish
+- test
+
+.test: &test
+  stage: upstream
+  image: $CI_JOB_NAME
+  coverage: '/^Total.* (\d+.\d+)$/'
+  before_script:
+  - cpanm ExtUtils::Depends Devel::Cover TAP::Harness::JUnit Devel::Cover::Report::Cobertura
+  - apt-get update && apt-get -y --no-install-recommends install ffmpeg
+  - cpanm --notest --installdeps .
+  - perl Makefile.PL
+  script:
+  - cover -delete
+  - HARNESS_PERL_SWITCHES='-MDevel::Cover' prove -v -l -s --harness TAP::Harness::JUnit
+  - cover
+  - cover -report cobertura
+  artifacts:
+    paths:
+    - cover_db
+    reports:
+      junit: junit_output.xml
+      coverage_report:
+        path: cover_db/cobertura.xml
+        coverage_format: cobertura
+
+perl:latest:
+  <<: *test
+
+perl:5.28:
+  <<: *test
+
+test:committed:
+  stage: upstream
+  image: perl:latest
+  before_script:
+  - apt-get update && apt-get -y --no-install-recommends install git ffmpeg
+  - cpanm ExtUtils::Depends
+  - cpanm --notest --installdeps .
+  - perl Makefile.PL
+  script:
+  - make manifest
+  - git diff --exit-code
+
+test:critic:
+  stage: upstream
+  image: perl:latest
+  before_script:
+  - cpanm Perl::Critic
+  script:
+  - perlcritic .
+
+dput:
+  stage: publish
+  image: debian:stable
+  dependencies:
+  - build
+  allow_failure: true
+  before_script:
+  - apt-get update
+  - apt-get -y install dput-ng curl
+  - echo -e "[gitlab]\nmethod=https\nfqdn=https://gitlab-runner:$CI_JOB_TOKEN@$CI_SERVER_HOST\nincoming=/api/v4/projects/$CI_PROJECT_ID/packages/debian\n" > dput.cf
+  - 'curl --request POST --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" https://$CI_SERVER_HOST/api/v4/projects/$CI_PROJECT_ID/debian_distributions?codename=unstable'
+  script:
+  - dput --config=dput.cf --unchecked --no-upload-log gitlab debian/output/*.changes
--- libmedia-convert-perl-1.1.0.orig/MANIFEST
+++ libmedia-convert-perl-1.1.0/MANIFEST
@@ -37,5 +37,3 @@ t/script.t
 t/testvids/bbb.mp4
 t/testvids/m-c.png
 t/testvids/m-c.svg
-META.yml                                 Module YAML meta-data (added by MakeMaker)
-META.json                                Module JSON meta-data (added by MakeMaker)
--- libmedia-convert-perl-1.1.0.orig/lib/Media/Convert/Asset.pm
+++ libmedia-convert-perl-1.1.0/lib/Media/Convert/Asset.pm
@@ -742,9 +742,23 @@ sub _probe_vstream_id {
 
 =head2 extra_params
 
-Add extra parameters. This should be used sparingly, rather add some
+Add extra (output) parameters. This should be used sparingly, rather add some
 abstraction.
 
+=head3 handles
+
+=over
+
+=item *
+
+add_param (adds an extra parameter)
+
+=item *
+
+drop_param (delete a parameter)
+
+=back
+
 =cut
 
 has 'extra_params' => (
@@ -767,6 +781,47 @@ sub _probe_extra_params {
 	return {};
 }
 
+=head2 input_params
+
+Add extra input parameters. This should be used sparingly, rather add
+some abstraction.
+
+=head3 handles
+
+=over
+
+=item *
+
+add_input_param (adds an extra parameter)
+
+=item *
+
+drop_input_param (delete a parameter)
+
+=back
+
+=cut
+
+has 'input_params' => (
+	traits => ['Hash'],
+	isa => 'HashRef[Str]',
+	is => 'ro',
+	handles => {
+		add_input_param => 'set',
+		drop_input_param => 'delete',
+	},
+	builder => "_probe_input_params",
+	lazy => 1,
+);
+
+sub _probe_input_params {
+	my $self = shift;
+	if($self->has_reference) {
+		return $self->reference->input_params;
+	}
+	return {};
+}
+
 =head2 time_offset
 
 Apply an input time offset to this video (only valid when used as an
@@ -816,6 +871,13 @@ sub readopts {
 	if($self->has_time_offset) {
 		push @opts, ("-itsoffset", $self->time_offset);
 	}
+
+	if(scalar(keys(%{$self->input_params})) > 0) {
+		foreach my $param(keys %{$self->input_params}) {
+			push @opts, ("-$param", $self->input_params->{$param});
+		}
+	}
+
 	push @opts, ("-i", $self->url);
 	return @opts;
 }
