aboutsummaryrefslogtreecommitdiffstats
path: root/testing/handbrake/ffmpeg-4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/handbrake/ffmpeg-4.patch')
-rw-r--r--testing/handbrake/ffmpeg-4.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/handbrake/ffmpeg-4.patch b/testing/handbrake/ffmpeg-4.patch
new file mode 100644
index 0000000000..f5f4ad9985
--- /dev/null
+++ b/testing/handbrake/ffmpeg-4.patch
@@ -0,0 +1,17 @@
+diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
+index dc43411..cfae5f1 100644
+--- a/libhb/muxavformat.c
++++ b/libhb/muxavformat.c
+@@ -1202,10 +1202,12 @@ static int avformatMux(hb_mux_object_t *m, hb_mux_data_t *track, hb_buffer_t *bu
+ {
+ pkt.flags |= AV_PKT_FLAG_KEY;
+ }
++#ifdef AV_PKT_FLAG_DISPOSABLE
+ if (!(buf->s.flags & HB_FLAG_FRAMETYPE_REF))
+ {
+ pkt.flags |= AV_PKT_FLAG_DISPOSABLE;
+ }
++#endif
+ }
+ else if (buf->s.frametype & HB_FRAME_MASK_KEY)
+ {