James Almer
7a4840a8ca
avformat/av1: reduce the scope of some variables
...
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-28 09:12:51 -03:00
James Almer
76e10325fc
avformat/av1: support av1C extradata in ff_av1_parse_seq_header()
...
Fixes dash manifest creation for av1 streams with av1C formatted extradata.
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-28 09:08:27 -03:00
James Almer
b6c7f82db7
avformat: always compile isom_tags
...
It's needed for avformat_get_mov_video_tags() and avformat_get_mov_audio_tags(),
both public symbols defined in avformat.h
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-28 09:08:19 -03:00
Tong Wu
a0a2ccd55d
qsvenc: avoid dereferencing the null pointer
...
The variable AVFrame *frame could be a null pointer, now add a null
pointer check to avoid dereferencing the null pointer.
Signed-off-by: Tong Wu <tong1.wu@intel.com >
2022-02-28 12:41:40 +08:00
Tong Wu
d05ca3d779
qsv: add return value check for MFXQueryIMPL
...
add a return value check for function MFXQueryIMPL to handle the error
message.
Signed-off-by: Tong Wu <tong1.wu@intel.com >
2022-02-28 12:41:27 +08:00
Wenbin Chen
342d4fb056
libavcodec/qsvenc: add mbbrc to hevc_qsv
...
Add mbbrc to hevc_qsv
For detailed description, please see "mbbrc" part in:
https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#mfxextcodingoption2
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2022-02-28 12:40:02 +08:00
Wenbin Chen
4869ccb3f3
libavcodec/qsvenc: add more ChromaFormat support to mjpeg_qsv
...
ChromaForamt for mjpeg-qsv is always set to yuv420, and this will be
wrong when encode other pixel format (for example yuyv422). ChromaFormat
is changed to be adaptive to pix_fmt.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
2022-02-28 12:39:52 +08:00
Wenbin Chen
d165ce22a4
libavcodec/vaapi_encode: Add async_depth to vaapi_encoder to increase performance
...
Fix : #7706 . After commit 5fdcf85bbf
, vaapi encoder's performance
decrease. The reason is that vaRenderPicture() and vaSyncBuffer() are
called at the same time (vaRenderPicture() always followed by a
vaSyncBuffer()). Now I changed them to be called in a asynchronous way,
which will make better use of hardware.
Async_depth is added to increase encoder's performance. The frames that
are sent to hardware are stored in a fifo. Encoder will sync output
after async fifo is full.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2022-02-28 12:37:02 +08:00
Wenbin Chen
e0ff869930
libavcodec/vaapi_encode: Add new API adaption to vaapi_encode
...
Add vaSyncBuffer to VAAPI encoder. Old version API vaSyncSurface wait
surface to complete. When surface is used for multiple operation, it
waits all operations to finish. vaSyncBuffer only wait one channel to
finish.
Signed-off-by: Wenbin Chen <wenbin.chen@intel.com >
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com >
2022-02-28 12:37:02 +08:00
Paul B Mahol
567cab3bd8
avfilter/vf_amplify: improve performance
2022-02-27 23:50:57 +01:00
Paul B Mahol
a2dbd17788
avfilter/af_dynaudnorm: allocate new frame instead of making it writable
...
Later case does not use frame pool at all.
2022-02-27 20:05:57 +01:00
Paul B Mahol
a9124a75b0
avfilter/af_dynaudnorm: allow to filter subset of channels
2022-02-27 20:05:57 +01:00
Paul B Mahol
b9f91a7cbc
avfilter/af_dynaudnorm: make frame writable if it may be changed
2022-02-27 18:48:24 +01:00
Paul B Mahol
b15c26a22c
avfilter/af_acrusher: add timeline support
2022-02-27 16:53:24 +01:00
Paul B Mahol
8bcb7d49f9
avfilter/af_vibrato: add timeline support
2022-02-27 16:31:11 +01:00
Paul B Mahol
57580376f7
avfilter/af_tremolo: add timeline support
2022-02-27 16:31:11 +01:00
Paul B Mahol
0d0002cd20
avfilter/af_afftdn: add more verbose options aliases
2022-02-27 12:04:21 +01:00
Paul B Mahol
592cef6135
avfilter/af_afftdn: remove ThreadData struct code
2022-02-27 12:04:21 +01:00
Paul B Mahol
2cb482aa74
avfilter/af_afftdn: add support for writable input frames
2022-02-27 12:04:21 +01:00
James Almer
df272928ff
configure: stop allowing disabling lzo
...
The module is now always compiled in.
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-26 14:22:07 -03:00
James Almer
ff145498b2
avutil: make lzo always compile
...
Having optionally installed headers is a bad idea as there's no way to know
if they are present or not (unless a define is added to avconfig.h, but that's
just ugly).
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-26 14:17:00 -03:00
Paul B Mahol
6562d28b9b
avfilter/af_aspectralstats: stop using fifo and rewritting pts
2022-02-26 13:30:04 +01:00
Paul B Mahol
644b6ed3ff
avfilter/af_afftdn: stop using fifo and rewritting pts
2022-02-26 12:09:29 +01:00
Andreas Rheinhardt
c1735bb139
avcodec/libopenjpegenc: Don't clone AVFrame unnecessarily
...
Reviewed-by: Michael Bradshaw <mjbshaw@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-25 22:31:30 +01:00
Andreas Rheinhardt
3ca347900e
avcodec/h263dec: Avoid copying data when flipping image
...
Also remove an unchecked av_frame_make_writable().
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-25 22:31:30 +01:00
Michael Niedermayer
70a1024290
avformat/argo_cvg:: Fix order of operations in error check in argo_cvg_write_trailer()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-25 22:23:03 +01:00
Michael Niedermayer
c8c12fb5d6
avformat/argo_asf: Fix order of operations in error check in argo_asf_write_trailer()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-25 22:23:03 +01:00
Michael Niedermayer
c182c70658
avcodec/movtextdec: add () to CMP() macro to avoid unexpected behavior
...
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-25 22:23:03 +01:00
Michael Niedermayer
36680078ca
avformat/matroskadec: Check duration
...
Fixes: -nan is outside the range of representable values of type 'long'
Fixes: 44614/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6216204841254912
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-25 22:23:03 +01:00
Michael Niedermayer
c900f2e42c
tools/target_dem_fuzzer: Check fmt before dereferencing
...
Fixes: NULL pointer dereference
Fixes: 44884/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4656748688965632
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2022-02-25 22:23:03 +01:00
Paul B Mahol
68bc9773cf
avfilter/f_ebur128: set video outlink timebase and framerate
2022-02-25 18:15:26 +01:00
Paul B Mahol
e3f07185ed
avfilter/f_ebur128: also set max peak for all channels in frame metadata
2022-02-25 18:15:26 +01:00
Paul B Mahol
e845c41c94
avfilter/af_dynaudnorm: cleanup gaussian_filter() function
2022-02-25 18:15:26 +01:00
Martin Storsjö
c523724c69
swscale: Take the destination range into account for yuv->rgb->yuv conversions
...
The range parameters need to be set up before calling
sws_init_context (which selects which fastpaths can be used;
this gets called by sws_getContext); solely passing them via
sws_setColorspaceDetails isn't enough.
This fixes producing full range YUV range output when doing
YUV->YUV conversions between different YUV color spaces.
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-02-25 11:01:17 +02:00
Martin Storsjö
8a00caf309
Remove mentions of a nonexistent avversion.h
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-02-25 11:01:17 +02:00
James Almer
1dddb930aa
avcodec/libsvtav1: update some options and defaults
...
And bump the minimum required version to 0.9.0
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-24 20:36:53 -03:00
Paul B Mahol
353195fb38
avfilter/af_crystalizer: refactor code
2022-02-24 22:37:55 +01:00
Paul B Mahol
b9493e0cc0
avfilter/vf_tmidequalizer: check that frame is valid
2022-02-24 21:46:13 +01:00
Martin Storsjö
17ab836a5f
libavcodec, libavdevice: Remove unnecessary includes of version.h
...
xvmc.h used FF_API_* macros before, but they were removed in
1c63aed232
, leaving the include
unused.
The ones in android_camera.c and mediacodec_wrapper.c have been
added due to a misunderstanding, fixed in
c0bce367e4
and
13b77af2f0
.
The one in mediacodec.c seems to never have been used at all.
Signed-off-by: Martin Storsjö <martin@martin.st >
2022-02-24 22:36:15 +02:00
Paul B Mahol
6f04b43c22
avfilter/vf_tpad: handle case when no frame was ever received
2022-02-24 21:28:23 +01:00
Paul B Mahol
3715f2f864
avfilter/vf_tpad: if there is no frame to clone return early
2022-02-24 21:28:23 +01:00
James Almer
a2b090da79
avcodec/libsvtav1: fix compilation with old SVT-AV1 builds
...
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-24 16:34:16 -03:00
James Almer
c33b404885
avcodec/libsvtav1: add a svtav1-params option to pass a list of key=value parameters
...
Signed-off-by: James Almer <jamrial@gmail.com >
2022-02-24 14:57:00 -03:00
Andreas Rheinhardt
636631d9db
Remove unnecessary libavutil/(avutil|common|internal).h inclusions
...
Some of these were made possible by moving several common macros to
libavutil/macros.h.
While just at it, also improve the other headers a bit.
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
84f16bb5e6
avutil/avassert: Don't include avutil.h
...
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
155cd6baa4
Remove obsolete version.h inclusions
...
Forgotten in e7bd47e657
.
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
b389ff9a85
avutil/display: Don't include avutil.h
...
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
2c2d76b50d
avutil/integer: Don't include common.h
...
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
94d5892bea
avutil/pixelutils: Don't include common.h
...
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00
Andreas Rheinhardt
8e7d2e4621
avutil/samplefmt: Don't include attributes.h, avutil.h
...
Reviewed-by: Martin Storsjö <martin@martin.st >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2022-02-24 12:56:49 +01:00