Bug#1017151: handbrake: FTBFS: ../libhb/decsrtsub.c:223:39: error: ‘AV_NOPTS_VALUE’ undeclared (first use in this function)
Package: handbrake
Version: 1.5.1+ds1-2
Followup-For: Bug #1017151
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
Control: tags -1 patch
Please see attached a fix for this bug. Not sure what shifted since fixing
ffmpeg 5.0 support the first time :/
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
diff -Nru handbrake-1.5.1+ds1/debian/patches/ffmpeg-missing-include.patch handbrake-1.5.1+ds1/debian/patches/ffmpeg-missing-include.patch
--- handbrake-1.5.1+ds1/debian/patches/ffmpeg-missing-include.patch 1969-12-31 16:00:00.000000000 -0800
+++ handbrake-1.5.1+ds1/debian/patches/ffmpeg-missing-include.patch 2022-08-15 14:53:42.000000000 -0700
@@ -0,0 +1,19 @@
+Description: add additional header include for ffmpeg 5.0
+ libavutil/avutil.h is needed for AV_NOPTS_VALUE which is used extensively
+ in the code, so include it here.
+Author: Steve Langasek <steve.langasek@ubuntu.com>
+Last-Updated: 2022-08-15
+Forwarded: no
+
+Index: handbrake-1.5.1+ds1/libhb/handbrake/internal.h
+===================================================================
+--- handbrake-1.5.1+ds1.orig/libhb/handbrake/internal.h
++++ handbrake-1.5.1+ds1/libhb/handbrake/internal.h
+@@ -12,6 +12,7 @@
+
+ #include "libavutil/imgutils.h"
+ #include "libavutil/pixdesc.h"
++#include "libavutil/avutil.h"
+ #include "handbrake/project.h"
+
+ /***********************************************************************
diff -Nru handbrake-1.5.1+ds1/debian/patches/series handbrake-1.5.1+ds1/debian/patches/series
--- handbrake-1.5.1+ds1/debian/patches/series 2022-07-30 13:53:18.000000000 -0700
+++ handbrake-1.5.1+ds1/debian/patches/series 2022-08-15 14:53:42.000000000 -0700
@@ -1,3 +1,4 @@
0001-Remove-embedded-downloaded-copies-of-various-librari.patch
0002-Do-not-abort-if-libtool-meson-or-ninja-build-are-mis.patch
0003-libhb-include-bsf.h-header-to-fix-build-with-FFmpeg-.patch
+ffmpeg-missing-include.patch
Reply to: