Browse Source

lavc/libx265: mark disposable frames

Used by movenc to fill sdtp box

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
John Stebbins Michael Niedermayer 8 years ago
parent
commit
79a744768a
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libavcodec/libx265.c

+ 7
- 0
libavcodec/libx265.c View File

@@ -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…
Cancel
Save