Andreas Rheinhardt
25c8507818
Remove/replace some unnecessary avcodec.h inclusions
...
Also remove other unnecessary headers and include headers directly while
at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Xu Guangxin
6a941b5691
avcodec/av1_parse: use macro for MAX_OBU_HEADER_SIZE
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
ca9bbfb8e5
avcodec/av1_parse: don't look for trailing bits in Tile List OBUs
...
The spec states there aren't any.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
62f4722582
avcodec/av1_parse: Use av_fast_realloc() for OBU array
...
Based on commits 22bec0d33f
and
cebb446911
.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
Michael Niedermayer
c27c7b49dc
avcodec/av1_parse: Check obu_size
...
Fixes: out of array read
Fixes: SIGSEGV_get_obu_bit_length_av1_parse
Found-by: keval shah <skeval65@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Niedermayer
86e76762fc
avcodec/av1_parse: Fix bistream typo
...
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
James Almer
96a7099f3e
avcodec/av1_parse: take trailing bits into account when initializing the GetBitContext
...
Also only initialize it in ff_av1_packet_split() and not ff_av1_extract_obu(),
same as h2645_parse, so GetBitContext specific failures may not affect the
latter.
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
692e323d89
avcodec/av1_parse: return size of the parsed OBU in parse_obu_header()
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
4e937b1a60
avcodec/av1_parse: check for OBU header overread
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
45f52d19b9
avcodec: add AV1 packet split API
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago