Commit 79a74476 authored by John Stebbins's avatar John Stebbins Committed by Michael Niedermayer

lavc/libx265: mark disposable frames

Used by movenc to fill sdtp box
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent dc7d5f9f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment