François Cartegnie
64c3fa645b
packetizer: hevc: reorder is stored on sps
2 years ago
François Cartegnie
d6f3ef7aaa
packetizer: hevc: fix offset defaults on missing info
regression by 8c047bb483
2 years ago
Francois Cartegnie
8c047bb483
packetizer: hevc: provide picture left/top crop info
3 years ago
Francois Cartegnie
587b928054
packetizer: h264: provide picture left/top crop info
3 years ago
Steve Lhomme
4bdb9c1b36
packetizer: av1: fix bogus detection of monochrome
Match the algorithm from the specs of [1]
[1] https://aomediacodec.github.io/av1-spec/#color-config-syntax
3 years ago
Francois Cartegnie
ff6bd8f227
packetizer: mpegaudio: add layer 2 as input
currently can be output by mp4.
mp4->sout
3 years ago
Francois Cartegnie
b10157962b
packetizer: mpegaudio: set fourcc to source
3 years ago
Steve Lhomme
d59fdf9c8d
packetizer: av1: allow reading the super resolution from the sequence header
3 years ago
Steve Lhomme
507808e3a3
packetizer: av1: keep the reduced_still_picture_header
It's used to compare sequence headers.
3 years ago
Francois Cartegnie
ed97dd9fb8
packetizer: h264: add all sps/pps sets to extradata
3 years ago
Francois Cartegnie
d8898afb15
packetizer: h264: refactor gathering sps/pps
3 years ago
Francois Cartegnie
21a329cc70
packetizer: h264: refactor sps/pps handling
3 years ago
Francois Cartegnie
c85581f423
packetizer: h264: add h264_get_xps_id shortcut
3 years ago
Francois Cartegnie
86393842b4
packetizer: h264: compare sps/pps before replacement
3 years ago
Francois Cartegnie
3ea4bcad79
packetizer: h264: refactor sps/pps duplication
3 years ago
Steve Lhomme
c254ee46ea
packetizers: allow inclusion HXXX NAL helpers from C++ code
3 years ago
Francois Cartegnie
43ad8704ff
packetizer: h264: add one more zero reorder case
3 years ago
Steve Lhomme
2f77dce7d2
mpeg4audio: avoid putting negative value in unsigned value
3 years ago
Steve Lhomme
a5e1a194b5
hxxx_nal: use size_t for the move values
They seem to represent a size for data in memory (size in block allocation) and
offset for a buffer memmove().
3 years ago
Marvin Scholz
d5f07af209
meson: add initial meson build system
Co-authored-by: Tanguy Dubroca <tanguy.dubroca@lse.epita.fr>
Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Co-authored-by: Alexandre Janniaux <ajanni@videolabs.io>
7 years ago
Steve Lhomme
007e5d910c
codec/packtizer: rename p_fmt_in to fmt_in
We don't need to know it's a pointer and can save 2 characters.
No functional changes. This is simply renaming "dec->p_fmt_in",
"decoder->p_fmt_in", "dec.p_fmt_in" and "packetizer->p_fmt_in"
3 years ago
Steve Lhomme
3bbe3ffe45
codec/packetizer: use read-only input format wherever possible
It's renaming :
"dec->fmt_in.", "dec.fmt_in.", "decoder->fmt_in.", "&dec->fmt_in",
"&p_dec->fmt_in" (except in decoder_Init), "&p_dec->fmt_in->",
"&decoder->fmt_in", "&p_dec->fmt_in,", "= p_dec->fmt_in;",
"&id->p_decoder->fmt_in" and "p_sys->p_decoder->fmt_in"
3 years ago
Steve Lhomme
b7756201ab
packetizer:vc1: constify the video format read
3 years ago
Steve Lhomme
a6afe16031
packetizer: vc1: keep the profile value
Ref !2814
3 years ago
Francois Cartegnie
c14b5aa6a7
packetizer: flac: fix CRC from emulated sync
also skips some memcpy
refs #27454 #27477
3 years ago
Francois Cartegnie
1630610b04
packetizer: h264: add gettype helper
4 years ago
Francois Cartegnie
fa7e785876
demux: es: store frame size in header struct
4 years ago
Francois Cartegnie
e95d07a745
demux: es: rework reading frame header
4 years ago
Johannes Kauffmann
d67387a0f9
packetizer: flac: don't shadow local variable
modules/packetizer/flac.c: In function 'Packetize':
modules/packetizer/flac.c:423:40: warning: declaration of 'streaminfo' shadows a previous local [-Wshadow=compatible-local]
423 | const struct flac_stream_info *streaminfo =
| ^~~~~~~~~~
modules/packetizer/flac.c:371:40: note: shadowed declaration is here
371 | const struct flac_stream_info *streaminfo =
| ^~~~~~~~~~
4 years ago
Francois Cartegnie
1db4d294ca
packetizer: flac: do not check min frame size for fixed block
cannot pass on truncated end
4 years ago
Francois Cartegnie
1c03970b91
packetizer: flac: move frame check outside reader
4 years ago
Francois Cartegnie
54ffcdec20
packetizer: flac: remove useless frame_size
4 years ago
Francois Cartegnie
1cd8422afd
packetizer: flac: fix fixed blocksize streams last pts
4 years ago
Francois Cartegnie
6aeaeb610d
packetizer: flac: add comments
4 years ago
Francois Cartegnie
d231265080
packetizer: flac: fix potential endless loop on drain
4 years ago
Francois Cartegnie
599757d9e4
packetizer: flac: don't send invalid frame on drain
4 years ago
Francois Cartegnie
5a3b687bf1
packetizer: flac: fix leak on error
4 years ago
Steve Lhomme
e65c74fdab
packetizer:av1: detect sequence header changes
When the sequence header changes we need to know it has changed so the output
values can be reset.
In particular the visible size was not reset since it was set initially by the
demuxer. The first sequence header received is still not used to overwrite the
visible size after this patch.
The extra data were not reset even though they contain the sequence header.
Because there changes were not detected the new output format is never
forwarded.
Fixes #26811
4 years ago
Steve Lhomme
d675af2829
packetizer:av1: add a function to compare sequence headers
A change in a sequence header means the stream has changed.
4 years ago
Steve Lhomme
fe5c91cf4f
packetizer:av1: remove always true test
4 years ago
Steve Lhomme
db1a38ff9e
packetizer:av1: fix debug formatting
4 years ago
Steve Lhomme
b1e684c77a
packetizer: av1: always set subsampling_x/y
Especially since it's mostly 1 (4:2:0) and we were supposed to read the
chroma_sample_position in that case.
4 years ago
Alexandre Janniaux
ee23251ddf
avparser: remove trailing line
4 years ago
Alexandre Janniaux
72992236ed
avparser: fix missing const
4 years ago
Alexandre Janniaux
6b7a57f984
modules: fix typos
Typos found and reworked from codespell.
4 years ago
Francois Cartegnie
4c2ca68295
packetizer: mpeg4audio: typo
4 years ago
Lyndon Brown
510e3f0764
av1: fix condition scope issue in macro
caused a big block of warnings.
4 years ago
Lyndon Brown
6f68f89498
plugins: purge use of set_category()
see e967f81f6a .
note, this does **not** affect cat-based module selection items
(of which there are just three in use by the core), since that
mechanism uses subcats not cats.
7 years ago
Alexandre Janniaux
e0dc6167a7
hxxx_sei: fix memory leak on error
5 years ago
Rémi Denis-Courmont
ed3db4c97a
mpegaudio: invert condition to simplify
Invert the checks for (in)valid frame headers to bail out early,
reindent and remove logically dead code.
4 years ago