summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lavc/libvpxenc: handle queue desync more gracefullyAnton Khirnov2023-03-101-8/+15
| | | | | | | | | If the packets returned by libvpx and our internal frame properties queue get desynchronized for some reason (should not happen, but it is not clear libvpx API guarantees this), we will keep adding to the queue indefinitely and never remove anything. Change the code to drain the queue even if timestamps do not match.
* lavc/libvpxenc: drop a useless conditionAnton Khirnov2023-03-101-1/+1
| | | | A non-NULL packet is always passed to frame_data_apply().
* lavc/libvpxenc: handle frame durations and AV_CODEC_CAP_ENCODER_REORDERED_OPAQUEAnton Khirnov2023-03-102-41/+100
|
* lavc/libvpxenc: rename hdr10_plus_fifo and related objectsAnton Khirnov2023-03-101-25/+26
| | | | | | | | | This AVFifo is used to propagate HDR metadata from input frames to output packets, since libvpx does not allow passing through arbitrary user data. It will be extended to pass through other kinds of data in future commits, so give it a more generic name.
* lavc/libvpxenc: reindentAnton Khirnov2023-03-101-5/+5
|
* lavc/libvpxenc: drop frame_numberAnton Khirnov2023-03-101-8/+1
| | | | | | | It is not used, except to check whether the packet is valid before writing HDR metadata to the packet in storeframe(). However, that check serves no purpose, as the encoded packet is already treated as valid higher up in this function.
* lavu/frame: improve AVFrame.opaque[_ref] documentationAnton Khirnov2023-03-101-7/+23
| | | | | Make them match each other, mention interaction with AV_CODEC_FLAG_COPY_OPAQUE.
* avformat/img2dec: fix unable to find svg format when the svg resources start ↵Wang Yaqiang2023-03-091-2/+7
| | | | | | | | | | | | with "<svg" or "<!--" svg is xml, but <?xml is not required, it can start with <svg and can have multiple empty lines, or start with <!-- include some comments, but must first line if start with <?xml. Signed-off-by: Wang Yaqiang <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avformat/aea: make the AEA demuxer return EOF at the end of file instead of EIOasivery2023-03-091-7/+1
| | | | | Signed-off-by: asivery <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avdevice/decklink_enc: fix unused variable compiler warningsDevin Heitmueller2023-03-081-2/+0
| | | | | | | | Due to refactoring, the ctx/cctx variables are never actually used in ff_decklink_write_packet(), so just remove them. Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avdevice/decklink_enc: fix setting of last_pts to only be set for videoDevin Heitmueller2023-03-081-2/+2
| | | | | | | | | | | | | | The ff_decklink_write_packet() was always caching the last pts received, to be used when calling StopScheduledPlayback(). However because audio and video are on different timebases and the call to StopScheduledPlayback() expects the video timebase, we'll end up sending a weird value to the stop routine if the last packet received contained audio. Move the setting of last_pts to just be for the video stream. Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avdevice/decklink_enc: don't take for granted that first frame to decklink ↵Devin Heitmueller2023-03-082-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | output will be PTS 0 The existing code assumed that the first frame received by the decklink output would always be PTS zero. However if running in other timing modes than the default of CBR, items such as frame dropping at the beginning may result in starting at a non-zero PTS. For example, in our setup because we discard probing data and run with "-vsync 2" the first video frame scheduled to the decklink output will have a PTS around 170. Scheduling frames too far into the future will either fail or cause a backlog of frames scheduled far enough into the future that the entire pipeline will stall. Issue can be reproduced with the following command-line: ./ffmpeg -copyts -i foo.ts -f decklink -vcodec v210 -ac 2 'DeckLink Duo (4)' Keep track of the PTS of the first frame received, so that when we enable start playback we can provide that value to the decklink driver. Thanks to Marton Balint for review and suggestion to use AV_NOPTS_VALUE rather than zero for the initial value. Signed-off-by: Devin Heitmueller <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avformat/http: cookie path attribute should be optional not compulsoryMichael J. Walsh2023-03-081-2/+2
| | | | | | | The path attribute in the Set-Cookie header is optional but treated by ffmpeg as being compulsory. Signed-off-by: Michael J. Walsh <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avformat/tls: check for memory allocation failure when setting optionsjackarain2023-03-081-6/+20
| | | | | Signed-off-by: jackarain <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avformat/udp: check for memory allocation failure when setting localaddrjackarain2023-03-081-0/+4
| | | | | Signed-off-by: jackarain <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* lavf/matroska: add support for ARIB captionsrcombs2023-03-083-0/+54
|
* avcodec/libdav1d: reindent after previous commitJames Almer2023-03-081-17/+17
| | | | Signed-off-by: James Almer <[email protected]>
* avcodec/libdav1d: export Dynamic HDR10+ frame metadataJames Almer2023-03-081-4/+32
| | | | | | | As defined in https://aomediacodec.github.io/av1-hdr10plus/ Reviewed-by: Ronald S. Bultje <[email protected]> Signed-off-by: James Almer <[email protected]>
* lavu/vulkan: fix handle type for 32-bit targetsKacper Michajłow2023-03-072-1/+5
| | | | | | | Fixes compilation with clang which errors out on Wint-conversion. Signed-off-by: Kacper Michajłow <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* vulkan: Fix win/i386 calling conventionMartin Storsjö2023-03-071-4/+4
| | | | | | | | | | | This fixes the following error when compiling with a modern version of Clang for Windows/i386: src/libavutil/hwcontext_vulkan.c:738:32: error: incompatible function pointer types initializing 'PFN_vkDebugUtilsMessengerCallbackEXT' (aka 'unsigned int (*)(enum VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const struct VkDebugUtilsMessengerCallbackDataEXT *, void *) __attribute__((stdcall))') with an expression of type 'VkBool32 (VkDebugUtilsMessageSeverityFlagBitsEXT, VkDebugUtilsMessageTypeFlagsEXT, const VkDebugUtilsMessengerCallbackDataEXT *, void *)' (aka 'unsigned int (enum VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, const struct VkDebugUtilsMessengerCallbackDataEXT *, void *)') [-Wincompatible-function-pointer-types] .pfnUserCallback = vk_dbg_callback, ^~~~~~~~~~~~~~~ Signed-off-by: Martin Storsjö <[email protected]>
* codec/arm/hevcdsp_idct_neon: remove duplicate movxufuji4562023-03-071-8/+2
| | | | Signed-off-by: Martin Storsjö <[email protected]>
* tests: actually test yadif's 10 and 16-bit functionsJames Darnley2023-03-063-62/+62
|
* avfilter/graphparser: fix filter instance name when an id is providedJames Almer2023-03-061-3/+4
| | | | | | | | | Restores the behavior of naming the instance filter@id, which was accidentally changed to simpy id in commit f17051eaae. Fixes ticket #10226. Signed-off-by: James Almer <[email protected]>
* avformat/mov: base pcmC endianness on just the LSBJan Ekström2023-03-051-1/+1
| | | | | | | | | | As per 23003-5:2020, the rest of the bits are reserved, and thus in the future they may be utilized for something else. Quote: format_flags is a field of flags that modify the default PCM sample format. Undefined flags are reserved and shall be zero. The following flag is defined: 0x01 indicates little-endian format. If not present, big-endian format is used.
* avformat/mov: check that pcmC box is of the expected typeJan Ekström2023-03-051-2/+11
| | | | | | As per 23003-5:2020 this box is defined as PCMConfig extends FullBox(‘pcmC’, version = 0, 0), which means that version is 0 and flags should be zero.
* lavfi/buffersrc: issue more specific error in case of invalid parametersStefano Sabatini2023-03-051-3/+10
|
* avcodec/ac3: Remove unused fieldsNicolas Gaullier2023-03-021-2/+0
| | | | | Signed-off-by: Nicolas Gaullier <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* lavc: disable an obsolete hack for real videoAnton Khirnov2023-03-026-26/+31
| | | | | | AVCodecContext.slice_{count,offset} are unneeded since 2007, commit 383b123ed37df4ff99010646f1fa5911ff1428cc and following. Deprecate those fields.
* doc/filters: update SITI descriptionWerner Robitza2023-03-021-3/+5
| | | | The filter implements the 'legacy' version from a superseded recommendation.
* avcodec/version: bump minor version to accommodate spatial audio detectionMarth642023-03-022-1/+5
| | | | Signed-off-by: Marth64 <[email protected]>
* avcodec/dca_xll: add detection of DTS:X and DTS:X IMAXMarth642023-03-025-13/+48
| | | | Signed-off-by: Marth64 <[email protected]>
* avcodec/mlpdec: add detection of Atmos spatial extension profile in TrueHDMarth642023-03-025-0/+19
| | | | Signed-off-by: Marth64 <[email protected]>
* avcodec/eac3dec: add detection of Atmos spatial extension profileMarth642023-03-028-1/+23
| | | | Signed-off-by: Marth64 <[email protected]>
* avcodec/aacps_tablegen: fix build error after avutil bumpZhao Zhili2023-03-021-1/+1
| | | | | | | | | Fix tickets #10225 DECLARE_ALIGNED has been moved to mem_internal.h. Signed-off-by: Zhao Zhili <[email protected]> Reviewed-by: Anton Khirnov <[email protected]>
* libavcodec/libvpxenc: move libvpx-vp9 init_static_data function to the only ↵James Almer2023-03-014-94/+42
| | | | | | place it's used Signed-off-by: James Almer <[email protected]>
* avcodec/libvpxdec: remove unnecessary init_static_data functionJames Almer2023-03-011-1/+0
| | | | | | | It's used only by the encoder. Reviewed-by: James Zern <[email protected]> Signed-off-by: James Almer <[email protected]>
* avcodec/pthread_frame: remove forgotten deprecation warning wrappersJames Almer2023-03-011-2/+0
| | | | | | | Missed in e0786a8e. Reviewed-by: Anton Khirnov <[email protected]> Signed-off-by: James Almer <[email protected]>
* Use https for repository linksMichael Niedermayer2023-03-013-5/+5
| | | | | Reviewed-by: Stefano Sabatini <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* libavcodec/libfdk-aacenc: send encoder delay/padding in packet side dataJonHGee2023-03-011-1/+24
| | | | | Signed-off-by: JonHGee <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* doc: Fix building community.html from the new community.texiMartin Storsjö2023-03-011-2/+2
| | | | | | | | | | | In texi source, @ characters need to be escaped. This fixes the following build errors: community.texi:59: unknown command `ffmpeg' community.texi:143: unknown command `ffmpeg' Signed-off-by: Martin Storsjö <[email protected]>
* doc: Merge doc/dev_community/* and Code of Conduct into a seperate fileThilo Borgmann2023-03-016-207/+177
| | | | | | Remove doc/dev_communit markup files completely as they are at the wrong place. Create a new community page, merging all of doc/dev_community and subsection Code of Conduct into a common place. The corresponding patch to ffmpeg-web puts the Organisation & Code of Conduct into a seperate community chapter on the FFmpeg website.
* doc/dev_community: add the addresses of the committeesNicolas George2023-03-011-0/+4
| | | | | | | Omitting the .org from the address should be protection enough against spam spiders. Signed-off-by: Nicolas George <[email protected]>
* fftools/ffmpeg_filter: initialize the 'o' to silence the warningJun Zhao2023-03-011-1/+1
| | | | | | | silence the warning: variable 'o' is used uninitialized whenever '&&' condition is false Signed-off-by: Jun Zhao <[email protected]>
* libavcodec/libfdk-aacenc: Enable writing DRC metadataJonHGee2023-03-011-13/+54
| | | | | Signed-off-by: JonHGee <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* doc/ffmpeg: extend documentation for -dts_delta_threshold and ↵Stefano Sabatini2023-02-281-6/+32
| | | | | | -dts_error_threshold PR: https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=8252
* ffmpeg_demux: show fixed timestamps in ts_fixupStefano Sabatini2023-02-281-7/+13
| | | | Help debugging.
* avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALLLeo Izen2023-02-283-55/+91
| | | | | These chunks are lightweight and it's useful information to have when running ffmpeg -i or ffprobe, for example.
* avcodec/nvenc: fix potential NULL pointer dereferenceZhao Zhili2023-02-281-2/+7
| | | | Signed-off-by: Timo Rothenpieler <[email protected]>
* libavcodec/hevc: remove duplicate semicolon in hevcdsp_init_neonxufuji4562023-02-281-2/+2
| | | | Signed-off-by: Martin Storsjö <[email protected]>
* libavcodec/hevc: reuse scale_store on idct32x32_neonxufuji4562023-02-281-16/+2
| | | | Signed-off-by: Martin Storsjö <[email protected]>