avcodec/libaomdec: auto insert dump_extra bitstream filter
authorJames Almer <jamrial@gmail.com>
Mon, 23 Jul 2018 15:32:47 +0000 (12:32 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 2 Aug 2018 15:41:05 +0000 (12:41 -0300)
Some containers, like Matroska, may propagate key frames with no Sequence
Header OBU since it's provided in extradata instead.
With this change, the Sequence Header will be appended to the packet data
before calling aom_codec_decode().

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

index 7e3121e..15a5893 100755 (executable)
--- a/configure
+++ b/configure
@@ -3049,6 +3049,7 @@ h264_videotoolbox_encoder_select="videotoolbox_encoder"
 hevc_videotoolbox_encoder_deps="pthreads"
 hevc_videotoolbox_encoder_select="videotoolbox_encoder"
 libaom_av1_decoder_deps="libaom"
+libaom_av1_decoder_select="dump_extradata_bsf"
 libaom_av1_encoder_deps="libaom"
 libaom_av1_encoder_select="extract_extradata_bsf"
 libcelt_decoder_deps="libcelt"
index 6a2de6d..ddfba8a 100644 (file)
@@ -232,4 +232,5 @@ AVCodec ff_libaom_av1_decoder = {
     .capabilities   = AV_CODEC_CAP_AUTO_THREADS | AV_CODEC_CAP_DR1,
     .profiles       = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
     .wrapper_name   = "libaom",
+    .bsfs           = "dump_extra",
 };