summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec/jpegxl: add Jpeg XL image codecLeo Izen2022-04-23
| | | | | | This commit adds support to libavcodec to read encoded Jpeg XL images. Jpeg XL is intended to be an extended-life replacement to legacy mjpeg.
* avfilter/avf_showspectrum: filter support all channel countsPaul B Mahol2022-04-23
|
* avfilter/af_afftdn: add gain_smooth optionPaul B Mahol2022-04-23
|
* avfilter: add colorchart video filterPaul B Mahol2022-04-23
|
* avfilter: add colormap video filterPaul B Mahol2022-04-23
|
* avfilter/vf_lagfun: small speed-upPaul B Mahol2022-04-23
|
* avformat/mov: Add support for still image AVIF parsingVignesh Venkatasubramanian2022-04-23
| | | | | | | | | | | This patch supports AVIF still images conforming to the final specification that have exactly one item (i.e. no alpha channel). The iloc box is parsed and the mov index populated. Partially fixes #7621. Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* avutil/timecode: use timecode fps for number of frame digitsMarton Balint2022-04-22
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mov: fix timecode with high frame rate contentMarton Balint2022-04-22
| | | | | | | | | | | | | | | | | | | | 60 fps content have "Number of Frames" set to 30 in the tmcd atom, but the frame duration / timescale reflects the original video frame rate. Therefore we multiply the frame count with the quotient of the rounded timecode frame rate and the "Number of Frames" per second to get a frame count in the original (higher) frame rate. Note that the frames part in the timecode will be in high frame rate which will make the timecode different to e.g. MediaInfo which seems to show the 30 fps timecode even for 120 fps content. Regression since 428b4aacb1a91a267650de644519882a5f700388. Fixes ticket #9710. Fixes ticket #9492. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/rtmpproto: send proper status for response to play commandMarton Balint2022-04-22
| | | | | | | | This fixes referencing the uninitialized filename variable. Fixes ticket #9711. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/cpu: #define _GNU_SOURCE before including any standard headersMarton Balint2022-04-22
| | | | | | | | Otherwise its effect might not work causing CPU_COUNT to not get defined. Fixes cpu count detection to actually use sched_getaffinity if available. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vsrc_mandelbrot: Check for malloc failureMichael Niedermayer2022-04-22
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: aarch64: Optimize the final summation in the hscale routineMartin Storsjö2022-04-22
| | | | | | | | | | | | | | | | | | | | | Before: Cortex A53 A72 A73 Graviton 2 Graviton 3 hscale_8_to_15_width8_neon: 8273.0 4602.5 4289.5 2429.7 1629.1 hscale_8_to_15_width16_neon: 12405.7 6803.0 6359.0 3549.0 2378.4 hscale_8_to_15_width32_neon: 21258.7 11491.7 11469.2 5797.2 3919.6 hscale_8_to_15_width40_neon: 25652.0 14173.7 12488.2 6893.5 4810.4 After: hscale_8_to_15_width8_neon: 7633.0 3981.5 3350.2 1980.7 1261.1 hscale_8_to_15_width16_neon: 11666.7 5951.0 5512.0 3080.7 2131.4 hscale_8_to_15_width32_neon: 20900.7 10733.2 9481.7 5275.2 3862.1 hscale_8_to_15_width40_neon: 24826.0 13536.2 11502.0 6397.2 4731.9 Thus, this gives overall a 8-29% speedup for the smaller filter sizes, around 1-8% for the larger filter sizes. Inspired by a patch by Jonathan Swinney <jswinney@amazon.com>. Signed-off-by: Martin Storsjö <martin@martin.st>
* examples/decode_video: flush parser to fix missing frameZhao Zhili2022-04-22
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avfilter/avf_showfreqs: add option to draw subset of channelsPaul B Mahol2022-04-22
|
* avfilter/avf_showfreqs: filter support all channel countsPaul B Mahol2022-04-22
|
* avfilter/vf_frei0r: Copy to frame allocated according to frei0r requirementsMichael Niedermayer2022-04-21
| | | | | | | Fixes: issues with non trivial linesize Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/video: Add ff_default_get_video_buffer2() to set specific alignmentMichael Niedermayer2022-04-21
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/genh: Check sample rateMichael Niedermayer2022-04-21
| | | | | | | | | Fixes: signed integer overflow: -2515507630940093440 * 4 cannot be represented in type 'long' Fixes: 46318/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5009637474172928 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>
* avformat/demux: Use unsigned to check duration vs duration_textMichael Niedermayer2022-04-21
| | | | | | | | | Fixes: signed integer overflow: 9223371898743775808 - -138111000000 cannot be represented in type 'long' Fixes: 46245/clusterfuzz-testcase-minimized-ffmpeg_dem_OGG_fuzzer-5075129786302464 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>
* doc/ffprobe: clarify that the input file is not optionalStefano Sabatini2022-04-21
| | | | Fix trac issue http://trac.ffmpeg.org/ticket/9562
* doc/ffplay: put keystrokes to decrease and increase volume on the same lineStefano Sabatini2022-04-21
| | | | Fix trac issue http://trac.ffmpeg.org/ticket/7832
* librtmp: use AVBPrint instead of char *Tristan Matthews2022-04-19
| | | | | | | This avoids having to do one pass to calculate the full length to allocate followed by a second pass to actually append values. Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter/vf_ciescope: add option to disable CIE tongue fillingPaul B Mahol2022-04-19
|
* avfilter/vf_ciescope: little optimizationsPaul B Mahol2022-04-19
|
* avfilter/avf_ahistogram: set time_base to outlinkPaul B Mahol2022-04-19
| | | | And rescale timestamps.
* doc: fix css file install for out-of-tree buildsTimo Rothenpieler2022-04-19
|
* avfilter/avf_avectorscope: set time_base to outlinkPaul B Mahol2022-04-18
| | | | And rescale timestamps.
* avfilter/avf_showvolume: set time_base to outlinkPaul B Mahol2022-04-18
| | | | And rescale timestamps.
* doc: install css files along html docsTimo Rothenpieler2022-04-18
|
* avfilter/vf_feedback: add missing .process_commandPaul B Mahol2022-04-15
|
* avfilter: add pixelize video filterPaul B Mahol2022-04-14
|
* avfilter: add feedback video filterPaul B Mahol2022-04-14
|
* avfilter/avf_showspectrum: fix pts offset by onePaul B Mahol2022-04-14
|
* fate/oma: Use REMUX where appropriateAndreas Rheinhardt2022-04-14
| | | | | | Simplifies the checks. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/subtitles: Use REMUX where appropriateAndreas Rheinhardt2022-04-14
| | | | | | | It also adds the missing depenencies on the file and pipe protocols and the framecrc muxer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/image: Use TRANSCODE where appropriateAndreas Rheinhardt2022-04-14
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* tests/Makefile: Add auxiliary functions for transcode and stream_remuxAndreas Rheinhardt2022-04-14
| | | | | | | | | | | | | | | | | Tests using the transcode and stream_remux functions have some common requirements (namely the file and pipe protocols as well as the framecrc muxer) and also other commonalities: The create a file and read it immediately afterwards, so that they typically rely on a corresponding muxer+demuxer pair which typically shares the same name; for transcode (if it does not use stream copy) the same is true for encoders and decoders. This means that using special Makefile-functions instead of the general ALLYES is worthwhile. This commit adds such functions. These functions allow to add arbitrary CONFIG-checks on top of the aforementioned ones in order to satisfy special needs (for e.g. parsers, filters) that several intended users have. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mjpegenc: Don't unnecessarily grow bufferAndreas Rheinhardt2022-04-14
| | | | | | | | | The size of the ICC chunk has already been accounted for when the packet's buffer was initially set in ff_mpv_encode_picture() and the header (including the ICC chunk) has already been written at this point. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mpegvideo_enc: Remove always-true checkAndreas Rheinhardt2022-04-14
| | | | | | | It is a remnant of the old way for user-supplied buffers; it is always-true since 93016f5d1d280f9cb7856883af287fa66affc04c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mpegvideo_enc: Fix unnecessary linear growth of bufferAndreas Rheinhardt2022-04-14
| | | | | | | | | | | If one encodes MJPEG with a single slice and uses input with AV_FRAME_DATA_ICC_PROFILE side data, the current allocation code in ff_mpv_encode_picture() will always increase the size of the temporary buffer used for allocating packets by the size needed for to write the ICC chunk even when the current buffer is actually large enough. This commit fixes this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/mpegvideo_enc: Ignore ICC profile size when not MJPEGAndreas Rheinhardt2022-04-14
| | | | | | | | MJPEG is the only mpegvideo-based encoder making use of it. Fixes linking failures in case mpegvideo_enc.c is compiled with AMV, LJPEG and MJPEG encoders disabled. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter/avf_showspectrum: add alpha pixel format supportPaul B Mahol2022-04-14
|
* avformat/ipfsgateway: define PATH_MAXMark Gaiser2022-04-14
| | | | | | | | | PATH_MAX is posix. Some compilers (MSVC) don't define this thus failing to compile the ipfsgateway file. Defining it fixes the compile. Signed-off-by: Mark Gaiser <markg85@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter/af_adenorm: simplify handling of commandsPaul B Mahol2022-04-13
|
* avfilter/avf_showvolume: check for allocation error and stop leaksPaul B Mahol2022-04-13
|
* avcodec/avcodec: Don't reset decoder-fields for encoders when flushingAndreas Rheinhardt2022-04-13
| | | | | Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/avcodec: Simplify accessing AVSubtitleRect via dedicated pointerAndreas Rheinhardt2022-04-13
| | | | | Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/avcodec: Avoid av_frame_unref(NULL)Andreas Rheinhardt2022-04-13
| | | | | | | It works, but it is not documented to work. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/encode: Fix check for encoders impl. encode-simple APIAndreas Rheinhardt2022-04-13
| | | | | | | FFCodec.cb is a union. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>