aboutsummaryrefslogtreecommitdiff
path: root/multimedia/olive/olive-0.1.2-proxygenerator.patch
diff options
context:
space:
mode:
authorBloyburt <alexpen@startmail.com>2022-08-25 22:45:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-08-27 22:50:31 +0700
commitf388a2c15495b01541701aa227db0055f66adc77 (patch)
tree5c509ecb87a4f81e7fdd84aa8d0d0f0c70ec7191 /multimedia/olive/olive-0.1.2-proxygenerator.patch
parentc45fa88c8cafd49585f68d2df067a7dc453de6fe (diff)
multimedia/olive: Added (Olive Video Editor)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/olive/olive-0.1.2-proxygenerator.patch')
-rw-r--r--multimedia/olive/olive-0.1.2-proxygenerator.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/olive/olive-0.1.2-proxygenerator.patch b/multimedia/olive/olive-0.1.2-proxygenerator.patch
new file mode 100644
index 0000000000000..1fab14f60484f
--- /dev/null
+++ b/multimedia/olive/olive-0.1.2-proxygenerator.patch
@@ -0,0 +1,18 @@
+diff --unified --recursive --text olive-0.1.2-orig/project/proxygenerator.cpp olive-0.1.2-new/project/proxygenerator.cpp
+--- olive-0.1.2-orig/project/proxygenerator.cpp 2019-11-11 03:05:02.000000000 -0300
++++ olive-0.1.2-new/project/proxygenerator.cpp 2020-06-23 21:07:29.808353198 -0300
+@@ -167,7 +167,13 @@
+ }
+
+ // write video header
+- avformat_write_header(output_fmt_ctx, nullptr);
++ int error_code;
++ error_code = avformat_write_header(output_fmt_ctx, nullptr);
++ if (error_code < 0) {
++ qWarning() << "Failed to write video header";
++ cancelled = true;
++ skip = true;
++ }
+
+ // packet that av_read_frame will dump file packets into
+ AVPacket packet;