summaryrefslogtreecommitdiff
path: root/libavcodec/libx265.c
diff options
context:
space:
mode:
authorJohn Stebbins <jstebbins@jetheaddev.com>2017-12-05 16:36:58 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-12-07 22:51:18 +0100
commit79a744768aa6f498e4f46fca4ff01cd04eade9a5 (patch)
tree89cdfa7bb1a44acada2e3a0468fb48969dec00ea /libavcodec/libx265.c
parentdc7d5f9f1904faebab73f5de60f2c360c8255333 (diff)
lavc/libx265: mark disposable frames
Used by movenc to fill sdtp box Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r--libavcodec/libx265.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index cbb106aeed..25ccb02fcb 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -342,6 +342,13 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
+#if X265_BUILD >= 130
+ if (x265pic_out.sliceType == X265_TYPE_B)
+#else
+ if (x265pic_out.frameData.sliceType == 'b')
+#endif
+ pkt->flags |= AV_PKT_FLAG_DISPOSABLE;
+
*got_packet = 1;
return 0;
}