Paul B Mahol
1cbd4b00b1
avcodec/mlpenc: simplify strange pointer initializations
2021-09-07 18:16:13 +02:00
Paul B Mahol
7ebeef6aff
avformat/mlpdec: fix time_base for packet timestamps
2021-09-07 18:16:13 +02:00
Paul B Mahol
5d92b73c64
avcodec/mlpdec: fix integer sanitizer warning under clang
...
Fixes:
libavcodec/mlpdec.c:1108:37: runtime error: negation of 1 cannot be represented in type 'unsigned int'
2021-09-07 18:16:13 +02:00
James Almer
5fe648d04a
libswscale/swscale: initialize all dst plane pointers in sws_receive_slice()
...
Fixes valgrind warnings about use of uninitialised values.
Signed-off-by: James Almer <jamrial@gmail.com >
2021-09-07 09:44:58 -03:00
Peter Ross
c655a734b1
avcodec/siren: MSN Siren decoder
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Peter Ross <pross@xvid.org >
2021-09-07 18:07:11 +10:00
Paul B Mahol
b9426f371a
avcodec/mlpenc: remove convoluted incomplete multiple substreams support code
...
It is very hard to follow data structures indirections in current code,
so just remove it for now.
2021-09-07 00:18:33 +02:00
Paul B Mahol
e811b0080e
avcodec/mlpenc: use variables local to for loops
2021-09-07 00:18:33 +02:00
Limin Wang
75001ae844
avcodec/nvenc: add constrainedFrame encoding support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2021-09-06 14:25:26 +02:00
Limin Wang
3756525a59
avcodec/nvenc: add single slice intra refresh support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2021-09-06 14:13:00 +02:00
Limin Wang
e6bd5171ac
avcodec/nvenc: add intra refresh support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2021-09-06 14:12:57 +02:00
Limin Wang
85489e0308
avcodec/nvenc: make number of slices per frame configurable
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2021-09-06 13:33:53 +02:00
Anton Khirnov
60515a6d61
lavfi/vf_scale: pass the thread count to the scaler
2021-09-06 09:18:05 +02:00
Anton Khirnov
d6fdc78e91
sws: implement slice threading
2021-09-06 09:17:53 +02:00
Anton Khirnov
22c6fbc847
lavfi/vf_scale: convert to the frame-based sws API
2021-09-06 09:17:06 +02:00
Anton Khirnov
42cd64c182
sws: add a new scaling API
2021-09-06 09:16:52 +02:00
Michael Niedermayer
3c659f8618
avcodec/jpeg2000dec: Check that atom header is within bytsetream
...
Fixes: Infinite loop
Fixes: 36666/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5912760671141888
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-05 22:22:27 +02:00
Michael Niedermayer
33feb527ff
avcodec/apedec: Fix 2 integer overflows in filter_3800()
...
Fixes: signed integer overflow: 1683879955 - -466265224 cannot be represented in type 'int'
Fixes: 37419/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6074294407921664
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-05 22:22:27 +02:00
Michael Niedermayer
e58692837c
avcodec/xpmdec: Move allocations down after more error checks
...
Fixes: Timeout
Fixes: 37035/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XPM_fuzzer-5142718576721920
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-05 22:22:05 +02:00
Michael Niedermayer
26659fe53e
avcodec/argo: Move U, fix shift
...
Fixes: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 37249/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ARGO_fuzzer-5754862984888320
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2021-09-05 22:22:05 +02:00
Paul B Mahol
0c87b43c6c
avcodec/mlp: move sync defines to common header
2021-09-05 18:12:56 +02:00
Paul B Mahol
3ea0171ea3
avcodec/mlpenc: remove frame_size array from private context
...
It is supposed to be used with different bit depth and/or sample rates
per each substream, but such currently not implemented feature is not
important and current state causes problems when implementing variable
restart interval to fix decoding with sample rates not multiple of 40.
2021-09-05 16:08:19 +02:00
Paul B Mahol
5852bb6b4b
avcodec/mlpenc: stop using hardcoded value
2021-09-05 15:02:39 +02:00
Paul B Mahol
ac29cec312
avcodec/mlpenc: use av_shrink_packet()
2021-09-05 14:09:50 +02:00
Paul B Mahol
cfc491bf44
avcodec/mlpenc: remove no more needed goto
2021-09-05 14:09:50 +02:00
Gyan Doshi
a947098558
doc/muxers: add entry for OBU muxer
2021-09-05 16:01:02 +05:30
Paul B Mahol
4ca9877b91
avcodec/mlpenc: fix removal of packet timestamp/size from queue
2021-09-05 12:15:34 +02:00
Andreas Rheinhardt
b36b703c29
fftools/cmdutils: Use %c, not %s to write a single char
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-05 11:55:01 +02:00
Andreas Rheinhardt
5312208f12
Revert "ffmpeg: force 128k default audio bitrate if nothing is specified and there is no specific default"
...
This reverts commit 628a73f8f3
.
At the time of said commit there was talk of removing the audio bitrate
"ab" option to bring FFmpeg in line with what Libav has done in 2012 in
commit 041cd5a0c5
. By having different
option flags for the "ab" and the ordinay bitrate "b" option is is
possible to have different default bitrates for audio and video. In
order to maintain this behaviour and not break user scripts the commit
to be reverted added code to ffmpeg.c that set the bitrate value to the
audio default for audio codecs, but only if AVCodec.defaults didn't
exist (as in this case the default would be codec-default and not
affected by the "ab" removal).
This had the downside of being an API violation, because
AVCodec.defaults is not a public field. Given that the "ab" option
and its audio-specific default value have never been removed,
said API violation can be simply fixed by reverting said commit.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-05 11:55:01 +02:00
Paul B Mahol
d8863013a8
avcodec/mlpenc: remove not needed buf_size checks
2021-09-05 11:44:50 +02:00
Paul B Mahol
85b9b96957
avcodec/mlpenc: fix indentation
2021-09-05 11:44:50 +02:00
Paul B Mahol
036d94da43
avcodec/mlpenc: stop returning packets with no data
2021-09-05 11:44:50 +02:00
Paul B Mahol
589cd58c85
avcodec/mlpenc: simplify compare_best_offset()
2021-09-05 00:28:40 +02:00
Paul B Mahol
5b28a5db03
avcodec/mlpenc: use ff_ctz()
2021-09-05 00:11:40 +02:00
Paul B Mahol
d18b445689
avcodec/mlpenc: remove unused item
2021-09-05 00:09:55 +02:00
James Almer
7453d3482a
ffmpeg: let AVFilterGraph parse the filter_threads option
...
This way the CLI accepts for "filter_threads" the same values as for the
libavcodec specific option "threads".
Fixes FATE with THREADS=auto which was broken in bdc1bdf3f5
.
Signed-off-by: James Almer <jamrial@gmail.com >
2021-09-04 10:35:07 -03:00
James Almer
f599ae88c2
avfilter/avfiltergraph: add an "auto" constant to the threads option
...
Signed-off-by: James Almer <jamrial@gmail.com >
2021-09-04 10:35:01 -03:00
Andreas Rheinhardt
f58939affe
avfilter/vf_xmedian: Split portion of init unique to xmedian off
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 15:24:59 +02:00
Paul B Mahol
19b52a7cc4
avcodec/mlpenc: remove log messages when allocation fails at init
2021-09-04 14:46:40 +02:00
Paul B Mahol
30c213fa6c
avcodec/mlpenc: allocate filter buffers once at init
2021-09-04 14:46:40 +02:00
Paul B Mahol
57988fc496
avcodec/mlpenc: simplify allocations in mlp_encode_init()
2021-09-04 14:46:40 +02:00
Andreas Rheinhardt
70f06dd63c
fftools/cmdutils: Use %c, not %s, to write single char
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:12:56 +02:00
Andreas Rheinhardt
23b83adb6d
fftools/cmdutils: Don't access AV(In|Out)putformat.get_device_list
...
It is not part of the public API.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:12:56 +02:00
Andreas Rheinhardt
bc75fb5423
avcodec/omx: Reindentation
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:04:22 +02:00
Andreas Rheinhardt
5c0e2f839a
avcodec/omx: Check initializing mutexes/conditions
...
The earlier code did not properly check these initializations:
It only recorded whether the part of init where these initializations
are has been reached, but it did not check whether the initializations
were successful, although destroying them would be undefined behaviour
if they had not been initialized successfully.
Furthermore cleanup() always locked a mutex regardless of whether there
was any attempt to initialize these mutexes at all.
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:04:04 +02:00
Andreas Rheinhardt
16fc8cef74
avcodec/frame_thread_encoder: Mark init and free functions as av_cold
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00
Andreas Rheinhardt
5f6fcb0395
avcodec/frame_thread_encoder: Return proper error codes
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00
Andreas Rheinhardt
f1847dbc1f
avcodec/frame_thread_encoder: Don't shadow variables
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00
Andreas Rheinhardt
2e574235b0
avcodec/frame_thread_encoder: Reindent after the previous commit
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00
Andreas Rheinhardt
754b8454b7
avcodec/frame_thread_encoder: Check initializing mutexes/conditions
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00
Andreas Rheinhardt
95b681eafd
avcodec/vp9: Remove vp9_free_entries()
...
Now that the mutexes and conditions are only initialized and destroyed
once, said function only had one purpose: free the entries array.
Given that vp9_alloc_entries() already does this if the array is already
allocated it is unnecessary to call vp9_free_entries() anywhere except
when closing. And then one can just inline the one free into
vp9_decode_free().
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2021-09-04 08:03:33 +02:00