aports/testing/handbrake/ffmpeg-4.patch
Natanael Copa 60f658b408 testing/handbrake: build fix
add a patch for ffmpeg 4
2018-11-07 16:46:16 +00:00

18 lines
538 B
Diff

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)
{