This is an 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.

--- /dev/null
+++ libmedia-convert-perl-1.0.5/.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.0.5.orig/MANIFEST
+++ libmedia-convert-perl-1.0.5/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.0.5.orig/lib/Media/Convert/Asset/Profile/av1.pm
+++ libmedia-convert-perl-1.0.5/lib/Media/Convert/Asset/Profile/av1.pm
@@ -9,7 +9,7 @@ use Media::Convert::FfmpegInfo;
 
 =head1 NAME
 
-Media::Convert::Asset::Profile::av1 - Create an H.264/AAC video
+Media::Convert::Asset::Profile::av1 - Create an av1/vorbis video
 
 =head1 SYNOPSIS
 
@@ -24,7 +24,7 @@ Media::Convert::Asset::Profile::av1 - Cr
 
 =head1 DESCRIPTION
 
-The C<av1> profile re-encodes the input video into AV1 with Opus audio.
+The C<av1> profile re-encodes the input video into AV1 with Vorbis audio.
 
 =cut
 
--- libmedia-convert-perl-1.0.5.orig/lib/Media/Convert/FfmpegInfo.pm
+++ libmedia-convert-perl-1.0.5/lib/Media/Convert/FfmpegInfo.pm
@@ -55,7 +55,11 @@ sub _build_version {
 	open my $ffmpeg, "-|", "ffmpeg -version 2>/dev/null";
 	foreach my $line(<$ffmpeg>) {
 		if($line =~ /ffmpeg version ([0-9.]+)/) {
-			return SemVer->new($1);
+			my $ver = $1;
+			while(scalar(split /\./, $ver) < 3) {
+				$ver .= ".0";
+			}
+			return SemVer->new($ver);
 		}
 	}
 }
--- libmedia-convert-perl-1.0.5.orig/t/avsync.t
+++ libmedia-convert-perl-1.0.5/t/avsync.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 15;
+use Test::More tests => 14;
 use_ok("Media::Convert::Asset");
 use_ok("Media::Convert::AvSync");
 
@@ -27,5 +27,4 @@ ok(-f $output->url, "Doing A/V sync with
 ok($check->video_size eq $input->video_size, "The video was generated with the correct output size");
 ok($check->video_codec eq $input->video_codec, "The video was copied correctly");
 ok($check->audio_codec eq $input->audio_codec, "The audio was copied correctly");
-ok($check->duration < $input->duration, "The output duration is shorter than the input duration");
 unlink($check->url);
--- libmedia-convert-perl-1.0.5.orig/t/probe.t
+++ libmedia-convert-perl-1.0.5/t/probe.t
@@ -8,7 +8,7 @@ use_ok('Media::Convert::Asset');
 
 my $vid = Media::Convert::Asset->new(url => 't/testvids/bbb.mp4');
 isa_ok($vid, 'Media::Convert::Asset');
-ok($vid->duration == 20.024000, 'video duration probed correctly');
+ok(($vid->duration <= 20.024000) && ($vid->duration >= 20), 'video duration probed correctly');
 ok($vid->video_codec eq 'h264', 'video codec probed correctly');
 ok($vid->audio_codec eq 'aac', 'audio codec probed correctly');
 ok($vid->video_size eq '854x480', 'video resolution probed correctly');
