aports/community/handbrake/gcc14.patch

46 lines
1.5 KiB
Diff

--- HandBrake-1.6.1.orig/libhb/encavcodec.c
+++ HandBrake-1.6.1/libhb/encavcodec.c
@@ -8,6 +8,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
+#include <time.h>
#include "handbrake/handbrake.h"
#include "handbrake/hb_dict.h"
#include "handbrake/hbffmpeg.h"
--- HandBrake-1.6.1.orig/libhb/muxavformat.c
+++ HandBrake-1.6.1/libhb/muxavformat.c
@@ -7,6 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
+#include <time.h>
#include <ogg/ogg.h>
#include "libavcodec/bsf.h"
#include "libavformat/avformat.h"
--- HandBrake-1.6.1.orig/libhb/work.c
+++ HandBrake-1.6.1/libhb/work.c
@@ -7,6 +7,7 @@
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
+#include <time.h>
#include "handbrake/handbrake.h"
#include "libavformat/avformat.h"
#include "handbrake/decomb.h"
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c
index ea25ac6..043204c 100644
--- a/libhb/qsv_common.c
+++ b/libhb/qsv_common.c
@@ -2183,7 +2183,9 @@ static int hb_qsv_parse_options(hb_job_t *job)
}
else if (!strcasecmp(key, "async-depth"))
{
- int async_depth = hb_qsv_atoi(value, &err);
+ char *str = hb_value_get_string_xform(value);
+ int async_depth = hb_qsv_atoi(str, &err);
+ free(str);
if (!err)
{
job->qsv.async_depth = async_depth;