From 2d2af23349cae0d84c8ed51c249bfc1e6f2e28a2 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 2 Oct 2018 21:08:54 -0300 Subject: avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed Reviewed-by: Mark Thompson Signed-off-by: James Almer --- libavformat/ivfenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c index 66441a2a43..adf72117e9 100644 --- a/libavformat/ivfenc.c +++ b/libavformat/ivfenc.c @@ -97,6 +97,8 @@ static int ivf_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt) if (st->codecpar->codec_id == AV_CODEC_ID_VP9) ret = ff_stream_add_bitstream_filter(st, "vp9_superframe", NULL); + else if (st->codecpar->codec_id == AV_CODEC_ID_AV1) + ret = ff_stream_add_bitstream_filter(st, "av1_metadata", "td=insert"); return ret; } -- cgit v1.2.3