lavc/libx265: mark disposable frames
Used by movenc to fill sdtp box Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
dc7d5f9f19
commit
79a744768a
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue