summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-02 21:08:54 -0300
committerJames Almer <jamrial@gmail.com>2018-11-01 22:55:22 -0300
commit2d2af23349cae0d84c8ed51c249bfc1e6f2e28a2 (patch)
tree86ebb06694cdef2d4ee819bb5873ee1d74c87b13 /libavformat
parentf4dd2db91301279584fa26a706ed71d5e83a32c2 (diff)
downloadffmpeg-streaming-2d2af23349cae0d84c8ed51c249bfc1e6f2e28a2.zip
ffmpeg-streaming-2d2af23349cae0d84c8ed51c249bfc1e6f2e28a2.tar.gz
avformat/ivfenc: use the av1_metadata bsf to insert Temporal Delimiter OBUs if needed
Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/ivfenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c
index 66441a2..adf7211 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;
}
OpenPOWER on IntegriCloud