Andreas Rheinhardt
40123639fe
avformat/av1: Fix leak of dynamic buffer in case of parsing failure
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 27c6c925344e00c1a72ba8bb2b5cdd32cb1a2655)
2019-12-06 21:33:47 -03:00
James Almer
5152602ba8
avformat/av1: combine high_bitdepth and twelve_bit into a single bitdepth value
...
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 9a44ec94100a647df6920c65cccdd605a2e6865b)
2019-08-05 15:02:45 -03:00
James Almer
6e53b43d48
avformat/av1: rename some AV1SequenceParameters fields
...
Cosmetic change.
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 0d597a69bad6e98d088f4c17989abd6a6a34084d)
2019-08-05 15:02:36 -03:00
James Almer
a2df7e44b3
avformat/av1: split off sequence header parsing from the av1C writing function
...
It will be used by the dash muxer
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 68e48e5d97c102ea02c86e2922f3b8b42ffad07d)
2019-08-05 15:02:29 -03:00
James Almer
f4b254e299
avformat/av1: add color config values to AV1SequenceParameters
...
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 0c7cfd2c1919e5caaa138559d8f05e79447181aa)
2019-08-05 15:02:18 -03:00
Jeremy Dorfman via ffmpeg-devel
bb5efd1727
avformat/av1: Initialize padding in ff_isom_write_av1c
...
Otherwise, AV1 encodes with FFmpeg trigger use-of-uninitialized-value
warnings under MemorySanitizer, and the output buffer potentially
changes from run to run.
Signed-off-by: James Almer <jamrial@gmail.com>
2019-04-08 11:24:53 -03:00
James Almer
11cec34829
avformat/av1: zero initialize the seq_params struct
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-09-02 23:27:51 -03:00
James Almer
f00964e2f7
avformat/av1: filter out tile list OBUs from samples
...
As per the updated spec.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-08-17 15:26:05 -03:00
James Almer
8d5604a69a
avformat/av1: update ff_isom_write_av1c() to the latest revision of the spec
...
This will get ISOBMFF and Matroska up to date with the revised AV1 Codec
Configuration Box spec.
For now keep propagating raw OBUs as extradata until all libavcodec modules
are adapted to handle AV1CodecConfigurationRecord formatted extradata.
Tested-by: Thomas Daede <bztdlinux@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2018-08-17 15:09:02 -03:00
James Almer
ded339fb3c
avformat/av1: reorder OBUs before writting them in ff_isom_write_av1c()
...
Make sure Sequence Header is first, and only allow one of its kind.
Signed-off-by: James Almer <jamrial@gmail.com>
2018-08-02 12:41:54 -03:00
James Almer
692e323d89
avcodec/av1_parse: return size of the parsed OBU in parse_obu_header()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-08-02 12:41:54 -03:00
James Almer
1e126560c2
avformat/av1: return an error when no data is provided to ff_isom_write_av1c()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-08-02 12:41:53 -03:00
James Almer
9888a19db4
avformat/movenc: add support for AV1 streams
...
Signed-off-by: James Almer <jamrial@gmail.com>
2018-07-20 12:00:32 -03:00