blob: f5f4ad9985cfc2a712e6850671348206fab4ac98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
{
|