Paul B Mahol and James Almer
1606aab99b
avfilter/avfilter: fix OOM case for default activate
...
Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
(cherry picked from commit d9e41ead82 )
2024-05-01 15:32:40 -03:00
Paul B Mahol and James Almer
670c823406
avfilter/buffersrc: switch to activate
...
Fixes OOM when caller keeps adding frames into filtergraph
that reached EOF by other means, for example EOF is signalled
by other filter in filtergraph or by buffersink.
(cherry picked from commit 84e400ae37 )
2024-05-01 15:32:40 -03:00
Paul B Mahol
36eb774ad4
avcodec/mlpenc: try different filter parameters in case of out of range output from LPC
2023-10-27 12:45:23 +02:00
Paul B Mahol
567af48fba
avcodec/mlpenc: add support for 4.0/4.1 ch layout
2023-10-27 12:45:23 +02:00
Paul B Mahol
210e844def
avcodec/mlpdec: support for truehd with channels not representable with 5bit field in second stream
...
Fixes decoding for 4.0/4.1 layouts.
2023-10-27 12:45:23 +02:00
Paul B Mahol
deb4c28dcc
avcodec/mlpenc: add 3.1 ch layout support for truehd
2023-10-27 12:45:23 +02:00
Paul B Mahol
393d1ee541
avcodec/mlpenc: add 2.1 layout support for truehd
2023-10-20 23:29:45 +02:00
Paul B Mahol
79c568dd4e
avcodec/mlpenc: add proper support for output bit shift
2023-10-20 17:07:25 +02:00
Paul B Mahol
3f773d8d02
avcodec/mlpenc: add support for TrueHD substreams
...
Add 3.0 channel layout support for truehd encoder.
2023-10-20 17:07:24 +02:00
Paul B Mahol
98857ece48
avcodec/mlpenc: use ctx->num_substreams when writing headers
2023-10-20 17:07:23 +02:00
Paul B Mahol
94abb4df32
avcodec/mlpenc: add helper function to derive TrueHD ch map from ch_layout
2023-10-20 17:07:22 +02:00
Paul B Mahol
e7a6bba51a
avcodec/mlp*: merge flags used by encoder and decoder
2023-10-18 23:01:40 +02:00
Paul B Mahol
be2bbfe71d
avcodec/mlpenc: cleanup filtering
2023-10-18 23:01:39 +02:00
Paul B Mahol
c1053e2e35
avcodec/mlpenc: allow smaller shift for LPC
2023-10-18 23:01:38 +02:00
Paul B Mahol
b206056c82
avcodec/mlpenc: implement advanced stereo rematrix
2023-10-18 23:01:37 +02:00
Paul B Mahol
727ee32da7
avcodec/mlpenc: remove TODO comment, sample rate is always fixed
2023-10-18 23:01:36 +02:00
Paul B Mahol
9adc5d8bfe
avcodec/mlpenc: restructure code even more
...
Implement lsb_bypass for lossless rematrix.
2023-10-18 23:01:35 +02:00
Paul B Mahol
44dc42e4ac
avcodec/mlpenc: export lpc_coeff_precision option
...
Change default precision from 11 to 15, improves compression.
2023-10-10 13:53:11 +02:00
Paul B Mahol
394106a138
avcodec/mlpenc: fix regression in encoding only zeroes
...
Previously it would use more bits than neccessary.
2023-10-10 10:31:37 +02:00
Paul B Mahol
78fa1cff70
avcodec/mlpenc: export max_interval option
2023-10-09 23:48:00 +02:00
Paul B Mahol
ee9fb28429
avcodec/mlpenc: export codebook_search option too
2023-10-09 23:47:58 +02:00
Paul B Mahol
1703bfa133
avcodec/hcadec: implement proper .flush callback
2023-10-09 21:23:25 +02:00
Paul B Mahol
8786b91607
avcodec/mlpenc: change flag for shorten_by in THD case
2023-10-09 18:42:43 +02:00
Paul B Mahol
27c623b3d5
avcodec/mlpenc: fix stereo decorrelation
2023-10-09 18:42:42 +02:00
Paul B Mahol
71716406e6
avformat/wavdec: w64: do not error out for broken files if data start is found
...
Also attempt to fix invalid block_align value.
2023-10-07 11:19:54 +02:00
Paul B Mahol
84e0e2f43e
avcodec/mlpenc: rename some variables related to thd
...
Remove warning message that is no longer needed.
2023-10-07 11:19:53 +02:00
Paul B Mahol
d58e0af55c
avcodec/mlpdec: set extended_substream_info from header
...
To be used later.
2023-10-06 11:31:03 +02:00
Paul B Mahol
d7579189f7
avcodec/mlpenc: restructure code and resolve several bugs
...
Do not use put_sbits() where only unsigned is stored.
Reduce size of data_check_present field.
Reduce size of table of codebook_extremes[].
Avoid anonymously typedeffed structs.
Use encoder private context to store parameters.
Fix wrapping when calculating offsets.
Restructure arrays in encoder private context so to keep
arrays belonging to same subblock into separate structure.
Disable matrix coefficients as they are sometimes
producing wrong results.
2023-10-06 00:05:56 +02:00
Paul B Mahol
4fe0a31cab
avcodec/mlpenc: allow changing some LPC parameters
2023-10-02 20:31:30 +02:00
Paul B Mahol
a1b29ab60d
avcodec/mlpenc: increase compression ratio even more, fix LPC parameters
2023-10-02 20:31:28 +02:00
Paul B Mahol
0be5da9cfa
avcodec/mlpenc: increase compression ratio when input is of lower bit depth
2023-10-02 20:31:27 +02:00
Paul B Mahol
9e531370b3
avformat/aea: fix bitrate for mono
2023-10-02 01:28:14 +02:00
Paul B Mahol
edb6d6d536
avformat/aea: improve probe function
2023-10-02 01:28:11 +02:00
Paul B Mahol
7a444501d5
avcodec/mlpenc: fix quant_step_size for 16bit sample format input
2023-10-01 23:24:17 +02:00
Paul B Mahol
ffc783dea7
avcodec/mlpenc: fix writing end of stream marker
2023-10-01 23:24:16 +02:00
Paul B Mahol
873ce68f54
avcodec/flicvideo: add 1bit support
2023-10-01 18:44:13 +02:00
Paul B Mahol
ead1426a68
avcodec/rka: improve VRQ mode decoding
2023-09-30 15:35:04 +02:00
Paul B Mahol
8bfadacfd1
avcodec/rka: rename variable to something more representative
2023-09-30 15:35:03 +02:00
Paul B Mahol
3bbc7d799c
avcodec/ffv1*: add GBRAP14, GRAY14, YUVA422P12, YUVA444P12 formats support
2023-09-29 18:59:08 +02:00
Paul B Mahol
41f5b73903
avfilter/f_ebur128: do not print summary log if nothing was processed
2023-09-29 18:40:54 +02:00
Paul B Mahol
8623067e8d
avformat/isom_tags: add missing CFHD tag
2023-09-29 18:40:52 +02:00
Paul B Mahol
7ce2e5f3ea
avfilter/vf_pseudocolor: add support for more planar alpha formats
2023-09-28 23:09:31 +02:00
Paul B Mahol
0aa75a85e6
avfilter/vf_zscale: fix adding >8 bit alpha plane
2023-09-28 22:46:56 +02:00
Paul B Mahol
086c280901
avfilter/vf_zscale: add more planar formats with alpha
2023-09-28 22:46:55 +02:00
Paul B Mahol
35b6d9d80c
avfilter/vf_negate: add support for more planar with alpha
2023-09-28 22:46:54 +02:00
Paul B Mahol
3e7e5ec46b
fate: add forgotten changes for GBRAP14
2023-09-28 20:07:48 +02:00
Paul B Mahol
3a5171c9f4
avfilter/vf_extractplanes: add GBRAP14 support
2023-09-28 19:37:58 +02:00
Paul B Mahol
eaffbd9ac4
avcodec/magicyuv: add 14bit rgb(a) support
2023-09-28 19:37:58 +02:00
Paul B Mahol
29b673bdcf
swscale: add GBRAP14 format support
2023-09-28 19:37:58 +02:00
Paul B Mahol
8e1ef7c38f
avutil: add GBRAP14 format support
2023-09-28 19:36:08 +02:00
Paul B Mahol
b23eaf968e
avcodec/vlc: fix off by one in limit check for multi
2023-09-27 19:18:32 +02:00
Paul B Mahol
58d9b5caf3
avcodec/vlc: fix min/max bits calculation in multi vlc
...
Improves speed with >8 bit depth inputs.
2023-09-26 22:43:18 +02:00
Paul B Mahol
e1530a319a
avcodec/cdgraphics: fix for negative linesize and vertical scrolling
2023-09-26 20:27:57 +02:00
Paul B Mahol
56085e057f
avcodec/vlc: use logctx instead of NULL
2023-09-26 12:44:16 +02:00
Paul B Mahol and Michael Niedermayer
3bef108fa9
libswresample/swresample: avoid s16p internal transfer format
...
Instead use float one by default for sample rate conversions.
The s16p internal transfer format produces visible and hearable
quantization artifacts.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
for S8 we continue to use S16 as it should have enough precision
Fate is adjusted so bitexactness is maintained between mips/arm/x86
if more tests became bit-inexact on some platform, the same change
can be done to them
The use of higher precision and float intermediates inevitably
leads to more differences between platforms.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2023-09-25 21:41:35 +02:00
Paul B Mahol
fb05bc8eee
avfilter/af_astats: extend and improve bit depth output
2023-09-25 19:07:11 +02:00
Paul B Mahol
9e768c8133
avcodec/dxa: use uint8_t for type of arrays
2023-09-25 19:07:10 +02:00
Paul B Mahol
13a3e2a9b4
avcodec/rtv1: stop returning incomplete frames
2023-09-24 14:22:04 +02:00
Paul B Mahol
b61733f61f
avcodec/notchlc: make variables that can be negative as signed
2023-09-23 22:48:43 +02:00
Paul B Mahol
c7f8d42c12
avcodec/flicvideo: fix decoding with AVFrame's negative linesize
2023-09-23 15:31:44 +02:00
Paul B Mahol
cb26b85953
avcodec/svq1dec: fix runtime error: applying non-zero offset 4 to null pointer
2023-09-23 10:04:08 +02:00
Paul B Mahol
5d98259841
avcodec/pnmdec: fix decoding with AVFrame's negative linesize
2023-09-23 01:42:49 +02:00
Paul B Mahol
cdf0931fdb
avcodec/pcx: fix decoding with AVFrame's negative linesize
2023-09-23 01:42:48 +02:00
Paul B Mahol
ee357d6991
avcodec/rasc: fix decoding with AVFrame's negative linesize
2023-09-23 01:14:12 +02:00
Paul B Mahol
87cf1be905
avcodec/lcldec: fix decoding with AVFrame's negative linesize
2023-09-22 23:38:00 +02:00
Paul B Mahol
445167d5fd
avcodec/cdxl: fix decoding with AVFrame's negative linesize
2023-09-22 23:12:55 +02:00
Paul B Mahol
24f63cb2b7
avcodec/gifdec: rewrite functions that fill block/frame
...
Also fix AVFrame's negative linesize decoding.
2023-09-22 22:56:59 +02:00
Paul B Mahol
1242d172e2
avfilter: use ptrdiff_t instead of int for linesize
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2023-09-22 22:56:57 +02:00
Paul B Mahol
c192ebc806
avcodec/cdgraphics: fix decoding with AVFrame's negative linesize
2023-09-22 22:56:22 +02:00
Paul B Mahol
035d187c4d
avformat/hca: add support for decryption
2023-09-22 08:52:18 +02:00
Paul B Mahol
365529178d
avformat/cafdec: improve probing
2023-09-21 22:41:10 +02:00
Paul B Mahol
ea06317190
avcodec/osq: do not return immediately on fatal error
2023-09-21 20:32:41 +02:00
Paul B Mahol
fa20f5cd9e
avcodec/vlc: add correct upper limit for recursive function
2023-09-18 20:11:48 +02:00
Paul B Mahol
5acc3c4cff
avcodec/vmixdec: improve quality factors
2023-09-17 12:55:56 +02:00
Paul B Mahol
9e1ea3caba
avformat: add CRI USM demuxer
2023-09-17 11:17:55 +02:00
Paul B Mahol
f7dc5d76e0
avcodec/lagarith: use VLC for prob code length
2023-09-17 11:17:20 +02:00
Paul B Mahol
1ac2769009
avcodec/adx_parser: make packet split work if nb_channels is set
2023-09-17 11:11:24 +02:00
Paul B Mahol
c5effe7d3d
avfilter/x86/af_afir: add FMA3 SIMD
2023-09-17 11:11:24 +02:00
Paul B Mahol
00a837c70c
avcodec/vmixdec: add support for custom first byte
2023-09-14 14:54:40 +02:00
Paul B Mahol
a18ccbfaeb
avformat/aiffdec: improve probe
2023-09-12 19:33:17 +02:00
Paul B Mahol
8cd2e0c075
avcodec/fraps: remove extra new lines and not needed cast
2023-09-11 22:04:28 +02:00
Paul B Mahol
8042f658f7
avformat/mpjpegdec: remove extra newlines
2023-09-11 22:04:27 +02:00
Paul B Mahol
1735ca3c41
avcodec/8bps: always decode to planar formats directly
2023-09-11 22:04:26 +02:00
Paul B Mahol
1ce1970417
avcodec/8bps: use uint8/uint16 where possible
2023-09-11 22:04:25 +02:00
Paul B Mahol
86bd0f08d3
avcodec/vmixdec: fix inputs with more than 255 slices
2023-09-11 01:14:50 +02:00
Paul B Mahol
64f538c356
avcodec/shorten: use uint16_t for wave_format
2023-09-11 01:14:49 +02:00
Paul B Mahol
e26506cb3b
avcodec/exr: use uint16/uint8 where possible
2023-09-10 22:44:39 +02:00
Paul B Mahol
f95cb3d134
avformat/adxdec: remove unneeded check for channels inside read_packet()
2023-09-10 22:44:39 +02:00
Paul B Mahol
1a87a9d82a
avcodec/magicyuvenc: add support for encoding raw slice
...
Switched to raw slice encoding only if huffman encoding size of slice
is bigger than raw one.
2023-09-10 17:56:04 +02:00
Paul B Mahol
c6f0fd2dcd
avcodec/magicyuvenc: use last slice height when correlating
2023-09-10 13:53:04 +02:00
Paul B Mahol
3b9e6a7333
avcodec/magicyuvenc: fix correlation buffers size when slices are used
2023-09-10 13:53:04 +02:00
Paul B Mahol
fd1574d1ba
avcodec/magicyuvenc: remove unnecessary indirection
2023-09-10 13:53:04 +02:00
Paul B Mahol
8c3169fafb
avcodec/magicyuvenc: add Slice struct to simplify allocations
2023-09-10 13:53:04 +02:00
Paul B Mahol
a716624293
avcodec/magicyuvenc: stop hardcoding max possible align
2023-09-10 13:53:04 +02:00
Paul B Mahol
5c87933e76
avcodec/magicyuvenc: move bit writer to stack
2023-09-10 13:52:59 +02:00
Paul B Mahol
800fbc98a5
avcodec/magicyuvenc: use const for src pointer
2023-09-10 13:51:47 +02:00
Paul B Mahol
4d1b7ff733
avcodec/magicyuvenc: check for allocation return value
2023-09-10 13:51:46 +02:00
Paul B Mahol
f832a77231
avcodec/magicyuvenc: ensure no slice slot is left unset
2023-09-10 13:51:39 +02:00
Paul B Mahol
5f8c113b75
avformat/flacdec: set time base for headerless flac
...
Fixes #6396 .
2023-09-09 12:09:49 +02:00
Paul B Mahol
e6923e06c2
avcodec/hcadec: small refactoring
2023-09-09 12:09:30 +02:00