[FFmpeg-cvslog] lavc/libx265: mark disposable frames

John Stebbins git at videolan.org
Thu Dec 7 23:55:48 EET 2017


ffmpeg | branch: master | John Stebbins <jstebbins at jetheaddev.com> | Tue Dec  5 16:36:58 2017 -0800| [79a744768aa6f498e4f46fca4ff01cd04eade9a5] | committer: Michael Niedermayer

lavc/libx265: mark disposable frames

Used by movenc to fill sdtp box

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79a744768aa6f498e4f46fca4ff01cd04eade9a5
---

 libavcodec/libx265.c | 7 +++++++
 1 file changed, 7 insertions(+)

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;
 }



More information about the ffmpeg-cvslog mailing list