]> git.sesse.net Git - ffmpeg/commit
avcodec/av1_metadata: filter parameter sets in packet side data
authorJames Almer <jamrial@gmail.com>
Wed, 22 Apr 2020 15:09:45 +0000 (12:09 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 3 May 2020 14:38:03 +0000 (11:38 -0300)
commit3921eed398c9ac01e9923e51d1bf9086556e03d1
tree37534b215bf05b9b4c29734e30414954d54fb664
parent449eaeb7a72a9fca437923660bfcdb6af844b353
avcodec/av1_metadata: filter parameter sets in packet side data

Extradata included in packet side data is meant to replace the codec context
extradata. So when muxing for example to MP4 without this change and if
extradata is present in a packet side data, the result will be that the
parameter sets present in keyframes will be filtered, but the parameter sets
ultimately included in the av1C box will not.

This is especially important for AV1 as both currently supported encoders don't
export the Sequence Header in the codec context extradata, but as packet side
data instead.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/av1_metadata_bsf.c