[FFmpeg-cvslog] vp9_superframe_split_bsf: implement a AVBSFContext.flush() callback
James Almer
git at videolan.org
Tue Sep 11 19:33:39 EEST 2018
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jul 27 13:22:34 2018 -0300| [eb1d1c764c7fcd824a834cfdd7487bdad64c6bab] | committer: James Almer
vp9_superframe_split_bsf: implement a AVBSFContext.flush() callback
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb1d1c764c7fcd824a834cfdd7487bdad64c6bab
---
libavcodec/vp9_superframe_split_bsf.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavcodec/vp9_superframe_split_bsf.c b/libavcodec/vp9_superframe_split_bsf.c
index 4e635a3070..0d31123874 100644
--- a/libavcodec/vp9_superframe_split_bsf.c
+++ b/libavcodec/vp9_superframe_split_bsf.c
@@ -131,6 +131,12 @@ fail:
return ret;
}
+static void vp9_superframe_split_flush(AVBSFContext *ctx)
+{
+ VP9SFSplitContext *s = ctx->priv_data;
+ av_packet_free(&s->buffer_pkt);
+}
+
static void vp9_superframe_split_uninit(AVBSFContext *ctx)
{
VP9SFSplitContext *s = ctx->priv_data;
@@ -140,6 +146,7 @@ static void vp9_superframe_split_uninit(AVBSFContext *ctx)
const AVBitStreamFilter ff_vp9_superframe_split_bsf = {
.name = "vp9_superframe_split",
.priv_data_size = sizeof(VP9SFSplitContext),
+ .flush = vp9_superframe_split_flush,
.close = vp9_superframe_split_uninit,
.filter = vp9_superframe_split_filter,
.codec_ids = (const enum AVCodecID []){ AV_CODEC_ID_VP9, AV_CODEC_ID_NONE },
More information about the ffmpeg-cvslog
mailing list