diff --git a/Changelog b/Changelog index 2be0ad12e5..04db8e15b2 100644 --- a/Changelog +++ b/Changelog @@ -156,6 +156,7 @@ version 6.1: variable-fields elements within the same parent element - ffprobe -output_format option added as an alias of -of +# codespell:off version 6.0: - Radiance HDR image support diff --git a/INSTALL.md b/INSTALL.md index 0de204cef5..5b98b45d88 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -24,5 +24,5 @@ NOTICE for Package Maintainers - It is recommended to build FFmpeg twice, first with minimal external dependencies so that 3rd party packages, which depend on FFmpegs libavutil/libavfilter/libavcodec/libavformat - can then be built. And last build FFmpeg with full dependancies (which may in turn depend on + can then be built. And last build FFmpeg with full dependencies (which may in turn depend on some of these 3rd party packages). This avoids circular dependencies during build. diff --git a/compat/solaris/make_sunver.pl b/compat/solaris/make_sunver.pl index 0e9ed1d351..0c9268ea8d 100755 --- a/compat/solaris/make_sunver.pl +++ b/compat/solaris/make_sunver.pl @@ -218,7 +218,7 @@ while () { # Lines of the form '} SOME_VERSION_NAME_1.0;' if (/^[ \t]*\}[ \tA-Z0-9_.a-z]+;[ \t]*$/) { $glob = 'glob'; - # We tried to match symbols agains this version, but none matched. + # We tried to match symbols against this version, but none matched. # Emit dummy hidden symbol to avoid marking this version WEAK. if ($matches_attempted && $matched_symbols == 0) { print " hidden:\n"; diff --git a/configure b/configure index dea5da7082..c0a4c3c87c 100755 --- a/configure +++ b/configure @@ -823,7 +823,7 @@ is_in(){ } # The cfg loop is very hot (several thousands iterations), and in bash also -# potentialy quite slow. Try to abort the iterations early, preferably without +# potentially quite slow. Try to abort the iterations early, preferably without # calling functions. 70%+ of the time cfg is already done or without deps. check_deps(){ for cfg; do @@ -929,7 +929,7 @@ reverse () { ' } -# keeps the last occurence of each non-unique item +# keeps the last occurrence of each non-unique item unique(){ unique_out= eval unique_in=\$$1 @@ -4530,7 +4530,7 @@ done if disabled autodetect; then - # Unless iconv is explicitely disabled by the user, we still want to probe + # Unless iconv is explicitly disabled by the user, we still want to probe # for the iconv from the libc. disabled iconv || enable libc_iconv @@ -5142,7 +5142,7 @@ probe_cc(){ disable stripping elif $_cc -? 2>/dev/null | grep -q 'LLVM.*Linker'; then # lld can emulate multiple different linkers; in ms link.exe mode, - # the -? parameter gives the help output which contains an identifyable + # the -? parameter gives the help output which contains an identifiable # string, while it gives an error in other modes. _type=lld-link # The link.exe mode doesn't have a switch for getting the version, @@ -7794,7 +7794,7 @@ elif enabled_any msvc icl; then fi # msvcrt10 x64 incorrectly enables log2, only msvcrt12 (MSVC 2013) onwards actually has log2. check_cpp_condition log2 crtversion.h "_VC_CRT_MAJOR_VERSION >= 12" - # the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the code + # the new SSA optimizer in VS2015 U3 is mis-optimizing some parts of the code # Issue has been fixed in MSVC v19.00.24218. test_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" || check_cflags -d2SSAOptimizer- diff --git a/doc/APIchanges b/doc/APIchanges index 87e6036f18..1d8ba76c3d 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -613,7 +613,7 @@ API changes, most recent first: Deprecate AVFrame.palette_has_changed without replacement. 2023-05-15 - 7d1d61cc5f5 - lavc 60 - avcodec.h - Depreate AVCodecContext.ticks_per_frame in favor of + Deprecate AVCodecContext.ticks_per_frame in favor of AVCodecContext.framerate (encoding) and AV_CODEC_PROP_FIELDS (decoding). @@ -621,7 +621,7 @@ API changes, most recent first: Add AV_CODEC_PROP_FIELDS. 2023-05-15 - 8b20d0dcb5c - lavc 60 - codec.h - Depreate AV_CODEC_CAP_SUBFRAMES without replacement. + Deprecate AV_CODEC_CAP_SUBFRAMES without replacement. 2023-05-07 - c2ae8e30b7f - lavc 60.11.100 - codec_par.h Add AVCodecParameters.framerate. diff --git a/doc/Doxyfile b/doc/Doxyfile index 572c532da5..7ac70b95c9 100644 --- a/doc/Doxyfile +++ b/doc/Doxyfile @@ -1093,7 +1093,7 @@ HTML_STYLESHEET = # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefor more robust against future updates. +# standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra stylesheet files is of importance (e.g. the last # stylesheet in the list overrules the setting of the previous ones in the @@ -1636,7 +1636,7 @@ EXTRA_PACKAGES = # Note: Only use a user-defined header if you know what you are doing! The # following commands have a special meaning inside the header: $title, # $datetime, $date, $doxygenversion, $projectname, $projectnumber, -# $projectbrief, $projectlogo. Doxygen will replace $title with the empy string, +# $projectbrief, $projectlogo. Doxygen will replace $title with the empty string, # for the replacement values of the other commands the user is referred to # HTML_HEADER. # This tag requires that the tag GENERATE_LATEX is set to YES. diff --git a/doc/community.texi b/doc/community.texi index 97a49f15ed..4274da5d63 100644 --- a/doc/community.texi +++ b/doc/community.texi @@ -123,7 +123,7 @@ Internally, the TC should take decisions with a majority, or using ranked-choice Each TC member must vote on such decision according to what is, in their view, best for the project. -If a TC member feels they are affected by a conflict of interest with regards to the case, they should announce it and recuse themselves from the TC +If a TC member feels they are affected by a conflict of interest with regards to the case, they should announce it and recurse themselves from the TC discussion and vote. A conflict of interest is presumed to occur when a TC member has a personal interest (e.g. financial) in a specific outcome of the case. diff --git a/doc/decoders.texi b/doc/decoders.texi index 17bb361ffa..13eb40f4dd 100644 --- a/doc/decoders.texi +++ b/doc/decoders.texi @@ -395,7 +395,7 @@ without this library. @c man end AUDIO DECODERS @chapter Subtitles Decoders -@c man begin SUBTILES DECODERS +@c man begin SUBTITLES DECODERS @section libaribb24 @@ -427,7 +427,7 @@ Enabled by default. Yet another ARIB STD-B24 caption decoder using external @dfn{libaribcaption} library. -Implements profiles A and C of the Japanse ARIB STD-B24 standard, +Implements profiles A and C of the Japanese ARIB STD-B24 standard, Brazilian ABNT NBR 15606-1, and Philippines version of ISDB-T. Requires the presence of the libaribcaption headers and library @@ -477,7 +477,7 @@ Specify comma-separated list of font family names to be used for @dfn{bitmap} or @dfn{ass} type subtitle rendering. Only first font name is used for @dfn{ass} type subtitle. -If not specified, use internaly defined default font family. +If not specified, use internally defined default font family. @item -ass_single_rect @var{boolean} ARIB STD-B24 specifies that some captions may be displayed at different @@ -495,7 +495,7 @@ default behavior at compilation. @item -force_outline_text @var{boolean} Specify whether always render outline text for all characters regardless of -the indication by charactor style. +the indication by character style. The default is @var{false}. @@ -696,4 +696,4 @@ box and an end box, typically subtitles. Default value is 0 if @end table -@c man end SUBTILES DECODERS +@c man end SUBTITLES DECODERS diff --git a/doc/demuxers.texi b/doc/demuxers.texi index 2324b3b469..016ce6468d 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -990,7 +990,7 @@ to 1 (-1 means automatic setting, 1 means enabled, 0 means disabled). Default value is -1. @item merge_pmt_versions -Re-use existing streams when a PMT's version is updated and elementary +Reuse existing streams when a PMT's version is updated and elementary streams move to different PIDs. Default value is 0. @item max_packet_size diff --git a/doc/developer.texi b/doc/developer.texi index 108558b9e0..10a2de00df 100644 --- a/doc/developer.texi +++ b/doc/developer.texi @@ -546,7 +546,7 @@ FFmpeg also has a defined scope - your new API must fit within it. @subsubheading Replacing existing APIs If your new API is replacing an existing one, it should be strictly superior to -it, so that the advantages of using the new API outweight the cost to the +it, so that the advantages of using the new API outweigh the cost to the callers of changing their code. After adding the new API you should then deprecate the old one and schedule it for removal, as described in @ref{Removing interfaces}. @@ -596,7 +596,7 @@ change in @file{doc/APIchanges}. Backward-incompatible API or ABI changes require incrementing (bumping) the major version number, as described in @ref{Major version bumps}. Major bumps are significant events that happen on a schedule - so if your change -strictly requires one you should add it under @code{#if} preprocesor guards that +strictly requires one you should add it under @code{#if} preprocessor guards that disable it until the next major bump happens. New APIs that can be added without breaking API or ABI compatibility require @@ -917,7 +917,7 @@ improves readability. Consider adding a regression test for your code. All new modules should be covered by tests. That includes demuxers, muxers, decoders, encoders filters, bitstream filters, parsers. If its not possible to do that, add -an explanation why to your patchset, its ok to not test if theres a reason. +an explanation why to your patchset, its ok to not test if there's a reason. @item If you added NASM code please check that things still work with --disable-x86asm. diff --git a/doc/encoders.texi b/doc/encoders.texi index 5595e57038..10333a7281 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -1038,7 +1038,7 @@ forces a wideband cutoff for bitrates < 15 kbps, unless CELT-only Set channel mapping family to be used by the encoder. The default value of -1 uses mapping family 0 for mono and stereo inputs, and mapping family 1 otherwise. The default also disables the surround masking and LFE bandwidth -optimzations in libopus, and requires that the input contains 8 channels or +optimizations in libopus, and requires that the input contains 8 channels or fewer. Other values include 0 for mono and stereo, 1 for surround sound with masking @@ -3703,7 +3703,7 @@ For encoders set this flag to ON to reduce power consumption and GPU usage. @end table @subsection Runtime Options -Following options can be used durning qsv encoding. +Following options can be used during qsv encoding. @table @option @item @var{global_quality} @@ -3813,7 +3813,7 @@ improves subjective visual quality. Enabling this flag may have negative impact on performance and objective visual quality metric. @item @var{low_delay_brc} -Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides +Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides more accurate bitrate control to minimize the variance of bitstream size frame by frame. Value: -1-default 0-off 1-on @@ -4012,7 +4012,7 @@ improves subjective visual quality. Enabling this flag may have negative impact on performance and objective visual quality metric. @item @var{low_delay_brc} -Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides +Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides more accurate bitrate control to minimize the variance of bitstream size frame by frame. Value: -1-default 0-off 1-on @@ -4246,7 +4246,7 @@ Extended bitrate control. Depth of look ahead in number frames, available when extbrc option is enabled. @item @var{low_delay_brc} -Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides +Setting this flag turns on or off LowDelayBRC feature in qsv plugin, which provides more accurate bitrate control to minimize the variance of bitstream size frame by frame. Value: -1-default 0-off 1-on diff --git a/doc/examples/mux.c b/doc/examples/mux.c index 0f3a2bb125..9b22c8dd1d 100644 --- a/doc/examples/mux.c +++ b/doc/examples/mux.c @@ -418,7 +418,7 @@ static void open_video(AVFormatContext *oc, const AVCodec *codec, exit(1); } - /* allocate and init a re-usable frame */ + /* allocate and init a reusable frame */ ost->frame = alloc_frame(c->pix_fmt, c->width, c->height); if (!ost->frame) { fprintf(stderr, "Could not allocate video frame\n"); diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index 665a76af2e..13b4933041 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -101,7 +101,7 @@ static int dynamic_set_parameter(AVCodecContext *avctx) /* Set codec specific option */ if ((ret = av_opt_set_dict(avctx->priv_data, &opts)) < 0) goto fail; - /* There is no "framerate" option in commom option list. Use "-r" to set + /* There is no "framerate" option in common option list. Use "-r" to set * framerate, which is compatible with ffmpeg commandline. The video is * assumed to be average frame rate, so set time_base to 1/framerate. */ e = av_dict_get(opts, "r", NULL, 0); @@ -180,7 +180,7 @@ static int open_input_file(char *filename) decoder = avcodec_find_decoder_by_name("mjpeg_qsv"); break; default: - fprintf(stderr, "Codec is not supportted by qsv\n"); + fprintf(stderr, "Codec is not supported by qsv\n"); return AVERROR(EINVAL); } @@ -289,7 +289,7 @@ static int dec_enc(AVPacket *pkt, const AVCodec *enc_codec, char *optstr) fprintf(stderr, "Failed to set encoding parameter.\n"); goto fail; } - /* There is no "framerate" option in commom option list. Use "-r" to + /* There is no "framerate" option in common option list. Use "-r" to * set framerate, which is compatible with ffmpeg commandline. The * video is assumed to be average frame rate, so set time_base to * 1/framerate. */ diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 6dea7ce7a0..3daf2f7ec2 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -376,7 +376,7 @@ which they are placed. These examples can of course be further generalized into arbitrary remappings of any number of inputs into any number of outputs. -@section Trancoding +@section Transcoding @emph{Transcoding} is the process of decoding a stream and then encoding it again. Since encoding tends to be computationally expensive and in most cases degrades the stream quality (i.e. it is @emph{lossy}), you should only transcode @@ -443,7 +443,7 @@ that simple filtergraphs are tied to their output stream, so e.g. if you have multiple audio streams, @option{-af} will create a separate filtergraph for each one. -Taking the trancoding example from above, adding filtering (and omitting audio, +Taking the transcoding example from above, adding filtering (and omitting audio, for clarity) makes it look like this: @verbatim ┌──────────┬───────────────┐ @@ -1048,7 +1048,7 @@ The following flags are available: @table @option @item recon_gain -Wether to signal if recon_gain is present as metadata in parameter blocks within frames +Whether to signal if recon_gain is present as metadata in parameter blocks within frames @end table @item output_gain diff --git a/doc/filters.texi b/doc/filters.texi index 74e9e71559..bc6dafd22d 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -216,7 +216,7 @@ filter input and output pads of all the filterchains are connected. Leading and trailing whitespaces (space, tabs, or line feeds) separating tokens in the filtergraph specification are ignored. This means that the filtergraph -can be expressed using empty lines and spaces to improve redability. +can be expressed using empty lines and spaces to improve readability. For example, the filtergraph: @example @@ -3383,7 +3383,7 @@ where applicable, an overall figure is also given. It accepts the following option: @table @option @item length -Short window length in seconds, used for peak and trough RMS measurement. +Short window length in seconds, used for peak and through RMS measurement. Default is @code{0.05} (50 milliseconds). Allowed range is @code{[0 - 10]}. @item metadata @@ -3544,7 +3544,7 @@ standard RMS level measured in dBFS @item RMS_peak @item RMS_trough -peak and trough values for RMS level measured over a short window, +peak and through values for RMS level measured over a short window, measured in dBFS. @item Zero crossings @@ -7904,7 +7904,7 @@ Gains are separated by white spaces and each gain is set in dBFS. Default is @code{0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0}. @item bands, b -Set the custom bands from where custon equalizer gains are set. +Set the custom bands from where custom equalizer gains are set. This must be in strictly increasing order. Only used if the preset option is set to @code{custom}. Bands are separated by white spaces and each band represent frequency in Hz. Default is @code{25 40 63 100 160 250 400 630 1000 1600 2500 4000 6300 10000 16000 24000}. @@ -9214,7 +9214,7 @@ The default value is @code{all}. Repack CEA-708 closed captioning side data -This filter fixes various issues seen with commerical encoders +This filter fixes various issues seen with commercial encoders related to upstream malformed CEA-708 payloads, specifically incorrect number of tuples (wrong cc_count for the target FPS), and incorrect ordering of tuples (i.e. the CEA-608 tuples are not at @@ -9357,19 +9357,19 @@ Mostly useful to speed-up filtering. @item threy Set Y threshold for averaging chrominance values. Set finer control for max allowed difference between Y components -of current pixel and neigbour pixels. +of current pixel and neighbour pixels. Default value is 200. Allowed range is from 1 to 200. @item threu Set U threshold for averaging chrominance values. Set finer control for max allowed difference between U components -of current pixel and neigbour pixels. +of current pixel and neighbour pixels. Default value is 200. Allowed range is from 1 to 200. @item threv Set V threshold for averaging chrominance values. Set finer control for max allowed difference between V components -of current pixel and neigbour pixels. +of current pixel and neighbour pixels. Default value is 200. Allowed range is from 1 to 200. @item distance @@ -9768,7 +9768,7 @@ Accepts a combination of the following flags: @table @samp @item color_range -Detect if the source countains luma pixels outside the limited (MPEG) range, +Detect if the source contains luma pixels outside the limited (MPEG) range, which indicates that this is a full range YUV source. @item alpha_mode Detect if the source contains color values above the alpha channel, which @@ -19817,7 +19817,7 @@ To enable the compilation of this filter, you need to configure FFmpeg with @code{--enable-libqrencode}. The QR code is generated from the provided text or text pattern. The -corresponding QR code is scaled and overlayed into the video output according to +corresponding QR code is scaled and overlaid into the video output according to the specified options. In case no text is specified, no QR code is overlaied. @@ -23146,7 +23146,7 @@ by progressively selecting a different column from each input frame. The end result is a sort of inverted parallax, so that far away objects move much faster that the ones in the front. The ideal conditions for this video -effect are when there is either very little motion and the backgroud is static, +effect are when there is either very little motion and the background is static, or when there is a lot of motion and a very wide depth of field (e.g. wide panorama, while moving on a train). @@ -23174,7 +23174,7 @@ How many columns should be inserted before end of filtering. Normally the filter shifts and tilts from the very first frame, and stops when the last one is received. However, before filtering starts, normal video may -be preseved, so that the effect is slowly shifted in its place. Similarly, +be preserved, so that the effect is slowly shifted in its place. Similarly, the last video frame may be reconstructed at the end. Alternatively it is possible to just start and end with black. @@ -25495,7 +25495,7 @@ pixel formats are not RGB. @item fitmode, fm Set sample aspect ratio of video output frames. Can be used to configure waveform so it is not -streched too much in one of directions. +stretched too much in one of directions. @table @samp @item none diff --git a/doc/general_contents.texi b/doc/general_contents.texi index 47eb2fe8f8..b9dab580f1 100644 --- a/doc/general_contents.texi +++ b/doc/general_contents.texi @@ -162,7 +162,7 @@ Then pass @code{--enable-libmp3lame} to configure to enable it. @section LCEVCdec -FFmpeg can make use of the liblcevc_dec library for LCEVC enhacement layer +FFmpeg can make use of the liblcevc_dec library for LCEVC enhancement layer decoding on supported bitstreams. Go to @url{https://github.com/v-novaltd/LCEVCdec} and follow the instructions diff --git a/doc/indevs.texi b/doc/indevs.texi index 998bd845e8..8822e070fe 100644 --- a/doc/indevs.texi +++ b/doc/indevs.texi @@ -704,7 +704,7 @@ Win32 GDI-based screen capture device. This device allows you to capture a region of the display on Windows. -Amongst options for the imput filenames are such elements as: +Amongst options for the input filenames are such elements as: @example desktop @end example diff --git a/doc/muxers.texi b/doc/muxers.texi index d2ee90bf33..7101df072d 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -319,7 +319,7 @@ This is the same as the @samp{vob} muxer with a few differences. @table @option @item muxrate @var{rate} Set user-defined mux rate expressed as a number of bits/s. If not -specied the automatically computed mux rate is employed. Default value +specified the automatically computed mux rate is employed. Default value is @code{0}. @item preload @var{delay} @@ -772,7 +772,7 @@ Force a delay expressed in seconds after the last frame of each repetition. Default value is @code{0.0}. @item plays @var{repetitions} -specify how many times to play the content, @code{0} causes an infinte +specify how many times to play the content, @code{0} causes an infinite loop, with @code{1} there is no loop @end table @@ -1770,7 +1770,7 @@ for looping indefinitely (default). @item final_delay @var{delay} Force the delay (expressed in centiseconds) after the last frame. Each frame ends with a delay until the next frame. The default is @code{-1}, which is a -special value to tell the muxer to re-use the previous delay. In case of a +special value to tell the muxer to reuse the previous delay. In case of a loop, you might want to customize this value to mark a pause for instance. @end table @@ -1856,7 +1856,7 @@ This muxer creates an .f4m (Adobe Flash Media Manifest File) manifest, an .abst (Adobe Bootstrap File) for each stream, and segment files in a directory specified as the output. -These needs to be accessed by an HDS player throuhg HTTPS for it to be able to +These needs to be accessed by an HDS player through HTTPS for it to be able to perform playback on the generated stream. @subsection Options @@ -2538,7 +2538,7 @@ these applications, audio may be played back on a wide range of devices, e.g., headphones, mobile phones, tablets, TVs, sound bars, home theater systems, and big screens. -This format was promoted and desgined by Alliance for Open Media. +This format was promoted and designed by Alliance for Open Media. For more information about this format, see @url{https://aomedia.org/iamf/}. diff --git a/doc/protocols.texi b/doc/protocols.texi index 969f4bf022..089f917dcc 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -71,7 +71,7 @@ client may also set a user/password for authentication. The default for both fields is "guest". Name of virtual host on broker can be set with vhost. The default value is "/". -Muliple subscribers may stream from the broker using the command: +Multiple subscribers may stream from the broker using the command: @example ffplay amqp://[[user]:[password]@@]hostname[:port][/vhost] @end example @@ -607,7 +607,7 @@ The resource requested by a client, when the experimental HTTP server is in use. The HTTP code returned to the client, when the experimental HTTP server is in use. @item short_seek_size -Set the threshold, in bytes, for when a readahead should be prefered over a seek and +Set the threshold, in bytes, for when a readahead should be preferred over a seek and new HTTP request. This is useful, for example, to make sure the same connection is used for reading large video packets with small audio packets in between. diff --git a/doc/swscale-v2.txt b/doc/swscale-v2.txt index 3ae2b27036..d14cb36eb7 100644 --- a/doc/swscale-v2.txt +++ b/doc/swscale-v2.txt @@ -295,7 +295,7 @@ for improvements: - op_scale_1110 - op_scale_1111 - This reflects the four different arangements of pixel components that are + This reflects the four different arrangements of pixel components that are typically present (or absent). While best for performance, it does turn into a bit of a chore when implementing these kernels. diff --git a/ffbuild/library.mak b/ffbuild/library.mak index 569708c73b..dee05c5acd 100644 --- a/ffbuild/library.mak +++ b/ffbuild/library.mak @@ -26,7 +26,7 @@ ifdef CONFIG_SHARED # for purely shared builds. # Test programs are always statically linked against their library # to be able to access their library's internals, even with shared builds. -# Yet linking against dependend libraries still uses dynamic linking. +# Yet linking against dependent libraries still uses dynamic linking. # This means that we are in the scenario described above. # In case only static libs are used, the linker will only use # one of these copies; this depends on the duplicated object files diff --git a/fftools/ffmpeg_dec.c b/fftools/ffmpeg_dec.c index b06455c7b1..1d7158f995 100644 --- a/fftools/ffmpeg_dec.c +++ b/fftools/ffmpeg_dec.c @@ -1594,7 +1594,7 @@ static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts, if (o->flags & DECODER_FLAG_BITEXACT) dp->dec_ctx->flags |= AV_CODEC_FLAG_BITEXACT; - // we apply cropping outselves + // we apply cropping ourselves dp->apply_cropping = dp->dec_ctx->apply_cropping; dp->dec_ctx->apply_cropping = 0; diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index d6f9c610d6..bf5e53efa9 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -2728,7 +2728,7 @@ static void sub2video_heartbeat(InputFilter *ifilter, int64_t pts, AVRational tb if (pts2 >= ifp->sub2video.end_pts || ifp->sub2video.initialize) /* if we have hit the end of the current displayed subpicture, or if we need to initialize the system, update the - overlayed subpicture and its start/end times */ + overlaid subpicture and its start/end times */ sub2video_update(ifp, pts2 + 1, NULL); else sub2video_push_ref(ifp, pts2); @@ -3141,7 +3141,7 @@ static int filter_thread(void *arg) goto finish; read_frames: - // retrieve all newly avalable frames + // retrieve all newly available frames ret = read_frames(fg, &fgt, fgt.frame); if (ret == AVERROR_EOF) { av_log(fg, AV_LOG_VERBOSE, "All consumers returned EOF\n"); diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c index e6d22063d7..3180367576 100644 --- a/fftools/ffmpeg_sched.c +++ b/fftools/ffmpeg_sched.c @@ -1899,7 +1899,7 @@ static int send_to_mux(Scheduler *sch, SchMux *mux, unsigned stream_idx, update_schedule: // TODO: use atomics to check whether this changes trailing dts - // to avoid locking unnecesarily + // to avoid locking unnecessarily if (dts != AV_NOPTS_VALUE || !pkt) { pthread_mutex_lock(&sch->schedule_lock); diff --git a/fftools/ffmpeg_sched.h b/fftools/ffmpeg_sched.h index 3062c4a6ec..fb7a77ddfc 100644 --- a/fftools/ffmpeg_sched.h +++ b/fftools/ffmpeg_sched.h @@ -355,7 +355,7 @@ enum DemuxSendFlags { * @retval "non-negative value" success * @retval AVERROR_EOF all consumers for the stream are done * @retval AVERROR_EXIT all consumers are done, should terminate demuxing - * @retval "anoter negative error code" other failure + * @retval "another negative error code" other failure */ int sch_demux_send(Scheduler *sch, unsigned demux_idx, struct AVPacket *pkt, unsigned flags); @@ -436,7 +436,7 @@ void sch_filter_receive_finish(Scheduler *sch, unsigned fg_idx, unsigned in_idx) * * @retval "non-negative value" success * @retval AVERROR_EOF all consumers are done - * @retval "anoter negative error code" other failure + * @retval "another negative error code" other failure */ int sch_filter_send(Scheduler *sch, unsigned fg_idx, unsigned out_idx, struct AVFrame *frame); diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index e8cde01407..7e2950ad1f 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2381,7 +2381,7 @@ static int open_input_file(InputFile *ifile, const char *filename, exit(1); if (do_show_log) { - // For loging it is needed to disable at least frame threads as otherwise + // For logging it is needed to disable at least frame threads as otherwise // the log information would need to be reordered and matches up to contexts and frames // That is in fact possible but not trivial av_dict_set(&codec_opts, "threads", "1", 0); diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c index 18e072c0c9..6a2aa9dc8e 100644 --- a/libavcodec/aac/aacdec.c +++ b/libavcodec/aac/aacdec.c @@ -395,8 +395,8 @@ static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags) FFSWAP(struct elem_to_channel, e2c_vec[6], e2c_vec[4]); // FLc & FRc fifth (final), SiL & SiR seventh FFSWAP(struct elem_to_channel, e2c_vec[7], e2c_vec[6]); // LFE2 seventh (final), SiL & SiR eight (final) FFSWAP(struct elem_to_channel, e2c_vec[9], e2c_vec[8]); // TpFL & TpFR ninth (final), TFC tenth (final) - FFSWAP(struct elem_to_channel, e2c_vec[11], e2c_vec[10]); // TC eleventh (final), TpSiL & TpSiR twelth - FFSWAP(struct elem_to_channel, e2c_vec[12], e2c_vec[11]); // TpBL & TpBR twelth (final), TpSiL & TpSiR thirteenth (final) + FFSWAP(struct elem_to_channel, e2c_vec[11], e2c_vec[10]); // TC eleventh (final), TpSiL & TpSiR twelfth + FFSWAP(struct elem_to_channel, e2c_vec[12], e2c_vec[11]); // TpBL & TpBR twelfth (final), TpSiL & TpSiR thirteenth (final) } else { // For everything else, utilize the AV channel position define as a // stable sort. @@ -1728,7 +1728,7 @@ int ff_aac_decode_ics(AACDecContext *ac, SingleChannelElement *sce, } } // I see no textual basis in the spec for this occurring after SSR gain - // control, but this is what both reference and real implmentations do + // control, but this is what both reference and real implementations do if (tns->present && er_syntax) { ret = ff_aac_decode_tns(ac, tns, gb, ics); if (ret < 0) diff --git a/libavcodec/aaccoder_twoloop.h b/libavcodec/aaccoder_twoloop.h index c56abc68a7..6ac2af51cb 100644 --- a/libavcodec/aaccoder_twoloop.h +++ b/libavcodec/aaccoder_twoloop.h @@ -311,14 +311,14 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, /** * Scale uplims to match rate distortion to quality - * bu applying noisy band depriorization and tonal band priorization. + * bu applying noisy band depriorization and tonal band prioritization. * Maxval-energy ratio gives us an idea of how noisy/tonal the band is. * If maxval^2 ~ energy, then that band is mostly noise, and we can relax * rate distortion requirements. */ memcpy(euplims, uplims, sizeof(euplims)); for (w = 0; w < sce->ics.num_windows; w += sce->ics.group_len[w]) { - /** psy already priorizes transients to some extent */ + /** psy already prioritizes transients to some extent */ float de_psy_factor = (sce->ics.num_windows > 1) ? 8.0f / sce->ics.group_len[w] : 1.0f; start = w*128; for (g = 0; g < sce->ics.num_swb; g++) { @@ -331,7 +331,7 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, nzslope * cleanup_factor); energy2uplim *= de_psy_factor; if (!(avctx->flags & AV_CODEC_FLAG_QSCALE)) { - /** In ABR, we need to priorize less and let rate control do its thing */ + /** In ABR, we need to prioritize less and let rate control do its thing */ energy2uplim = sqrtf(energy2uplim); } energy2uplim = FFMAX(0.015625f, FFMIN(1.0f, energy2uplim)); @@ -345,7 +345,7 @@ static void search_for_quantizers_twoloop(AVCodecContext *avctx, 2.0f); energy2uplim *= de_psy_factor; if (!(avctx->flags & AV_CODEC_FLAG_QSCALE)) { - /** In ABR, we need to priorize less and let rate control do its thing */ + /** In ABR, we need to prioritize less and let rate control do its thing */ energy2uplim = sqrtf(energy2uplim); } energy2uplim = FFMAX(0.015625f, FFMIN(1.0f, energy2uplim)); diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c index ac7ae5b28d..ed03cb68ac 100644 --- a/libavcodec/aacpsy.c +++ b/libavcodec/aacpsy.c @@ -168,7 +168,7 @@ typedef struct AacPsyContext{ * LAME psy model preset struct */ typedef struct PsyLamePreset { - int quality; ///< Quality to map the rest of the vaules to. + int quality; ///< Quality to map the rest of the values to. /* This is overloaded to be both kbps per channel in ABR mode, and * requested quality in constant quality mode. */ diff --git a/libavcodec/aacsbr_template.c b/libavcodec/aacsbr_template.c index 9fae44d9a5..72395c63dd 100644 --- a/libavcodec/aacsbr_template.c +++ b/libavcodec/aacsbr_template.c @@ -59,7 +59,7 @@ static void sbr_turnoff(SpectralBandReplication *sbr) { sbr->start = 0; sbr->usac = 0; sbr->ready_for_dequant = 0; - // Init defults used in pure upsampling mode + // Init defaults used in pure upsampling mode sbr->kx[1] = 32; //Typo in spec, kx' inits to 32 sbr->m[1] = 0; // Reset values for first SBR header diff --git a/libavcodec/aarch64/me_cmp_neon.S b/libavcodec/aarch64/me_cmp_neon.S index 20e3b33a83..efa28a77ac 100644 --- a/libavcodec/aarch64/me_cmp_neon.S +++ b/libavcodec/aarch64/me_cmp_neon.S @@ -534,7 +534,7 @@ function ff_pix_abs16_y2_neon, export=1 ld1 {v2.16b}, [x2], x3 // Load pix3 for first iteration ld1 {v0.16b}, [x1], x3 // Load pix1 for first iteration urhadd v30.16b, v1.16b, v2.16b // Rounding halving add, first iteration - ld1 {v5.16b}, [x2], x3 // Load pix3 for second iteartion + ld1 {v5.16b}, [x2], x3 // Load pix3 for second iteration uabal v29.8h, v0.8b, v30.8b // Absolute difference of lower half, first iteration uabal2 v28.8h, v0.16b, v30.16b // Absolute difference of upper half, first iteration ld1 {v3.16b}, [x1], x3 // Load pix1 for second iteration @@ -606,7 +606,7 @@ function sse16_neon, export=1 uabd v27.16b, v2.16b, v3.16b // Absolute difference, second iteration uadalp v17.4s, v29.8h // Pairwise add, first iteration ld1 {v4.16b}, [x1], x3 // Load pix1 for third iteration - umull v26.8h, v27.8b, v27.8b // Mulitply lower half, second iteration + umull v26.8h, v27.8b, v27.8b // Multiply lower half, second iteration umull2 v25.8h, v27.16b, v27.16b // Multiply upper half, second iteration ld1 {v5.16b}, [x2], x3 // Load pix2 for third iteration uadalp v17.4s, v26.8h // Pairwise add and accumulate, second iteration @@ -616,7 +616,7 @@ function sse16_neon, export=1 umull v23.8h, v24.8b, v24.8b // Multiply lower half, third iteration umull2 v22.8h, v24.16b, v24.16b // Multiply upper half, third iteration uadalp v17.4s, v23.8h // Pairwise add and accumulate, third iteration - ld1 {v7.16b}, [x2], x3 // Load pix2 for fouth iteration + ld1 {v7.16b}, [x2], x3 // Load pix2 for fourth iteration uadalp v17.4s, v22.8h // Pairwise add and accumulate, third iteration uabd v21.16b, v6.16b, v7.16b // Absolute difference, fourth iteration uadalp v17.4s, v28.8h // Pairwise add and accumulate, first iteration @@ -748,7 +748,7 @@ function sse4_neon, export=1 uabdl v28.8h, v4.8b, v5.8b // Absolute difference, third iteration umlal v16.4s, v29.4h, v29.4h // Multiply and accumulate, second iteration sub w4, w4, #4 - uabdl v27.8h, v6.8b, v7.8b // Absolue difference, fourth iteration + uabdl v27.8h, v6.8b, v7.8b // Absolute difference, fourth iteration umlal v16.4s, v28.4h, v28.4h // Multiply and accumulate, third iteration cmp w4, #4 umlal v16.4s, v27.4h, v27.4h // Multiply and accumulate, fourth iteration @@ -1593,7 +1593,7 @@ function sse16_neon_dotprod, export=1 uabd v24.16b, v4.16b, v5.16b // Absolute difference, third iteration ld1 {v6.16b}, [x1], x3 // Load pix1 for fourth iteration udot v17.4s, v24.16b, v24.16b - ld1 {v7.16b}, [x2], x3 // Load pix2 for fouth iteration + ld1 {v7.16b}, [x2], x3 // Load pix2 for fourth iteration uabd v21.16b, v6.16b, v7.16b // Absolute difference, fourth iteration sub w4, w4, #4 // h -= 4 udot v17.4s, v21.16b, v21.16b diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 231d4ce52d..fc55aa2687 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -224,7 +224,7 @@ typedef struct ALSDecContext { int32_t *quant_cof_buffer; ///< contains all quantized parcor coefficients int32_t **lpc_cof; ///< coefficients of the direct form prediction filter for a channel int32_t *lpc_cof_buffer; ///< contains all coefficients of the direct form prediction filter - int32_t *lpc_cof_reversed_buffer; ///< temporary buffer to set up a reversed versio of lpc_cof_buffer + int32_t *lpc_cof_reversed_buffer; ///< temporary buffer to set up a reversed version of lpc_cof_buffer ALSChannelData **chan_data; ///< channel data for multi-channel correlation ALSChannelData *chan_data_buffer; ///< contains channel data for all channels int *reverted_channels; ///< stores a flag for each reverted channel @@ -1558,7 +1558,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) { if (highest_byte) { for (i = 0; i < frame_length; ++i) { if (ctx->raw_samples[c][i] != 0) { - //The following logic is taken from Tabel 14.45 and 14.46 from the ISO spec + //The following logic is taken from Table 14.45 and 14.46 from the ISO spec if (av_cmp_sf_ieee754(acf[c], FLOAT_1)) { nbits[i] = 23 - av_log2(abs(ctx->raw_samples[c][i])); } else { diff --git a/libavcodec/amfdec.c b/libavcodec/amfdec.c index 5d1611675b..7b038c6181 100644 --- a/libavcodec/amfdec.c +++ b/libavcodec/amfdec.c @@ -656,7 +656,7 @@ static int amf_decode_frame(AVCodecContext *avctx, struct AVFrame *frame) }else return AVERROR_EOF; } else { - av_log(avctx, AV_LOG_ERROR, "Unkown result from QueryOutput %d\n", res); + av_log(avctx, AV_LOG_ERROR, "Unknown result from QueryOutput %d\n", res); } return got_frame ? 0 : AVERROR(EAGAIN); } diff --git a/libavcodec/amfenc_av1.c b/libavcodec/amfenc_av1.c index 399c032158..7202e0fcd5 100644 --- a/libavcodec/amfenc_av1.c +++ b/libavcodec/amfenc_av1.c @@ -32,11 +32,11 @@ static const AVOption options[] = { { "usage", "Set the encoding usage", OFFSET(usage), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_VIDEO_ENCODER_AV1_USAGE_LOW_LATENCY_HIGH_QUALITY, VE, .unit = "usage" }, { "transcoding", "Generic Transcoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_TRANSCODING }, 0, 0, VE, .unit = "usage" }, - { "ultralowlatency", "ultra low latency trancoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_ULTRA_LOW_LATENCY }, 0, 0, VE, .unit = "usage" }, + { "ultralowlatency", "ultra low latency transcoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_ULTRA_LOW_LATENCY }, 0, 0, VE, .unit = "usage" }, { "lowlatency", "Low latency usecase", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_LOW_LATENCY }, 0, 0, VE, .unit = "usage" }, { "webcam", "Webcam", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_WEBCAM }, 0, 0, VE, .unit = "usage" }, - { "high_quality", "high quality trancoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_HIGH_QUALITY }, 0, 0, VE, .unit = "usage" }, - { "lowlatency_high_quality","low latency yet high quality trancoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_LOW_LATENCY_HIGH_QUALITY }, 0, 0, VE, .unit = "usage" }, + { "high_quality", "high quality transcoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_HIGH_QUALITY }, 0, 0, VE, .unit = "usage" }, + { "lowlatency_high_quality","low latency yet high quality transcoding", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_USAGE_LOW_LATENCY_HIGH_QUALITY }, 0, 0, VE, .unit = "usage" }, { "bitdepth", "Set color bit deph", OFFSET(bit_depth), AV_OPT_TYPE_INT, {.i64 = AMF_COLOR_BIT_DEPTH_UNDEFINED }, AMF_COLOR_BIT_DEPTH_UNDEFINED, AMF_COLOR_BIT_DEPTH_10, VE, .unit = "bitdepth" }, { "8", "8 bit", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_COLOR_BIT_DEPTH_8 }, 0, 0, VE, .unit = "bitdepth" }, @@ -88,7 +88,7 @@ static const AVOption options[] = { { "rc", "Set the rate control mode", OFFSET(rate_control_mode), AV_OPT_TYPE_INT, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_UNKNOWN }, AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_UNKNOWN, AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_HIGH_QUALITY_CBR, VE, .unit = "rc" }, { "cqp", "Constant Quantization Parameter", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_CONSTANT_QP }, 0, 0, VE, .unit = "rc" }, { "vbr_latency", "Latency Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_LATENCY_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, - { "vbr_peak", "Peak Contrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, + { "vbr_peak", "Peak Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, { "cbr", "Constant Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_CBR }, 0, 0, VE, .unit = "rc" }, { "qvbr", "Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, { "hqvbr", "High Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_VIDEO_ENCODER_AV1_RATE_CONTROL_METHOD_HIGH_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, @@ -148,16 +148,16 @@ static const AVOption options[] = { { "pa_scene_change_detection_enable", "Enable scene change detection", OFFSET(pa_scene_change_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_scene_change_detection_sensitivity", "Set the sensitivity of scene change detection", OFFSET(pa_scene_change_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH, VE, .unit = "scene_change_sensitivity" }, - { "low", "low scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "medium", "medium scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "high", "high scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "low", "low scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "medium", "medium scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "high", "high scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, { "pa_static_scene_detection_enable", "Enable static scene detection", OFFSET(pa_static_scene_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_static_scene_detection_sensitivity", "Set the sensitivity of static scene detection", OFFSET(pa_static_scene_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH, VE , .unit = "static_scene_sensitivity" }, - { "low", "low static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "medium", "medium static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "high", "high static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "low", "low static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "medium", "medium static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "high", "high static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, { "pa_initial_qp_after_scene_change", "The QP value that is used immediately after a scene change", OFFSET(pa_initial_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, { "pa_max_qp_before_force_skip", "The QP threshold to allow a skip frame", OFFSET(pa_max_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, @@ -267,7 +267,7 @@ static av_cold int amf_encode_init_av1(AVCodecContext* avctx) // Color Transfer Characteristics (AMF matches ISO/IEC) if(avctx->color_primaries != AVCOL_PRI_UNSPECIFIED && (pix_fmt == AV_PIX_FMT_NV12 || pix_fmt == AV_PIX_FMT_P010)){ // if input is YUV, color_primaries are for VUI only - // AMF VCN color coversion supports only specifc output primaries BT2020 for 10-bit and BT709 for 8-bit + // AMF VCN color conversion supports only specific output primaries BT2020 for 10-bit and BT709 for 8-bit // vpp_amf supports more AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_AV1_OUTPUT_TRANSFER_CHARACTERISTIC, avctx->color_trc); } @@ -275,7 +275,7 @@ static av_cold int amf_encode_init_av1(AVCodecContext* avctx) // Color Primaries (AMF matches ISO/IEC) if(avctx->color_primaries != AVCOL_PRI_UNSPECIFIED || pix_fmt == AV_PIX_FMT_NV12 || pix_fmt == AV_PIX_FMT_P010 ) { - // AMF VCN color coversion supports only specifc primaries BT2020 for 10-bit and BT709 for 8-bit + // AMF VCN color conversion supports only specific primaries BT2020 for 10-bit and BT709 for 8-bit // vpp_amf supports more AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_AV1_OUTPUT_COLOR_PRIMARIES, avctx->color_primaries); } @@ -657,7 +657,7 @@ static av_cold int amf_encode_init_av1(AVCodecContext* avctx) buffer->pVtbl->Release(buffer); var.pInterface->pVtbl->Release(var.pInterface); - //processing crop informaiton according to alignment + //processing crop information according to alignment if (ctx->encoder->pVtbl->GetProperty(ctx->encoder, AMF_VIDEO_ENCODER_AV1_CAP_WIDTH_ALIGNMENT_FACTOR_LOCAL, &var) != AMF_OK) // assume older driver and Navi3x width_alignment_factor = 64; diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c index 260139f14f..131ba871f5 100644 --- a/libavcodec/amfenc_h264.c +++ b/libavcodec/amfenc_h264.c @@ -82,7 +82,7 @@ static const AVOption options[] = { { "rc", "Rate Control Method", OFFSET(rate_control_mode), AV_OPT_TYPE_INT, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_UNKNOWN }, AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_UNKNOWN, AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_HIGH_QUALITY_CBR, VE, .unit = "rc" }, { "cqp", "Constant Quantization Parameter", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP }, 0, 0, VE, .unit = "rc" }, { "cbr", "Constant Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CBR }, 0, 0, VE, .unit = "rc" }, - { "vbr_peak", "Peak Contrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, + { "vbr_peak", "Peak Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, { "vbr_latency", "Latency Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_LATENCY_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, { "qvbr", "Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, { "hqvbr", "High Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_HIGH_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, @@ -151,16 +151,16 @@ static const AVOption options[] = { { "pa_scene_change_detection_enable", "Enable scene change detection", OFFSET(pa_scene_change_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_scene_change_detection_sensitivity", "Set the sensitivity of scene change detection", OFFSET(pa_scene_change_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH, VE, .unit = "scene_change_sensitivity" }, - { "low", "low scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "medium", "medium scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "high", "high scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "low", "low scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "medium", "medium scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "high", "high scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, { "pa_static_scene_detection_enable", "Enable static scene detection", OFFSET(pa_static_scene_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_static_scene_detection_sensitivity", "Set the sensitivity of static scene detection", OFFSET(pa_static_scene_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH, VE , .unit = "static_scene_sensitivity" }, - { "low", "low static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "medium", "medium static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "high", "high static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "low", "low static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "medium", "medium static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "high", "high static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, { "pa_initial_qp_after_scene_change", "The QP value that is used immediately after a scene change", OFFSET(pa_initial_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, { "pa_max_qp_before_force_skip", "The QP threshold to allow a skip frame", OFFSET(pa_max_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index a4030d3953..73c555db38 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -74,7 +74,7 @@ static const AVOption options[] = { { "rc", "Set the rate control mode", OFFSET(rate_control_mode), AV_OPT_TYPE_INT, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_UNKNOWN }, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_UNKNOWN, AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_HIGH_QUALITY_CBR, VE, .unit = "rc" }, { "cqp", "Constant Quantization Parameter", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CONSTANT_QP }, 0, 0, VE, .unit = "rc" }, { "cbr", "Constant Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_CBR }, 0, 0, VE, .unit = "rc" }, - { "vbr_peak", "Peak Contrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, + { "vbr_peak", "Peak Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_PEAK_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, { "vbr_latency", "Latency Constrained Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_LATENCY_CONSTRAINED_VBR }, 0, 0, VE, .unit = "rc" }, { "qvbr", "Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, { "hqvbr", "High Quality Variable Bitrate", 0, AV_OPT_TYPE_CONST, { .i64 = AMF_VIDEO_ENCODER_HEVC_RATE_CONTROL_METHOD_HIGH_QUALITY_VBR }, 0, 0, VE, .unit = "rc" }, @@ -121,16 +121,16 @@ static const AVOption options[] = { { "pa_scene_change_detection_enable", "Enable scene change detection", OFFSET(pa_scene_change_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_scene_change_detection_sensitivity", "Set the sensitivity of scene change detection", OFFSET(pa_scene_change_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH, VE, .unit = "scene_change_sensitivity" }, - { "low", "low scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "medium", "medium scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, - { "high", "high scene change dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "low", "low scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "medium", "medium scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "scene_change_sensitivity" }, + { "high", "high scene change detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_SCENE_CHANGE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "scene_change_sensitivity" }, { "pa_static_scene_detection_enable", "Enable static scene detection", OFFSET(pa_static_scene_detection), AV_OPT_TYPE_BOOL, {.i64 = -1 }, -1, 1, VE }, { "pa_static_scene_detection_sensitivity", "Set the sensitivity of static scene detection", OFFSET(pa_static_scene_detection_sensitivity), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH, VE , .unit = "static_scene_sensitivity" }, - { "low", "low static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "medium", "medium static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, - { "high", "high static scene dectection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "low", "low static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_LOW }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "medium", "medium static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_MEDIUM }, 0, 0, VE, .unit = "static_scene_sensitivity" }, + { "high", "high static scene detection sensitivity", 0, AV_OPT_TYPE_CONST, {.i64 = AMF_PA_STATIC_SCENE_DETECTION_SENSITIVITY_HIGH }, 0, 0, VE, .unit = "static_scene_sensitivity" }, { "pa_initial_qp_after_scene_change", "The QP value that is used immediately after a scene change", OFFSET(pa_initial_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, { "pa_max_qp_before_force_skip", "The QP threshold to allow a skip frame", OFFSET(pa_max_qp), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 51, VE }, @@ -261,7 +261,7 @@ static av_cold int amf_encode_init_hevc(AVCodecContext *avctx) // Color Transfer Characteristics (AMF matches ISO/IEC) if(avctx->color_trc != AVCOL_TRC_UNSPECIFIED && (pix_fmt == AV_PIX_FMT_NV12 || pix_fmt == AV_PIX_FMT_P010)){ // if input is YUV, color_trc is for VUI only - any value - // AMF VCN color coversion supports only specifc output transfer characterstic SMPTE2084 for 10-bit and BT709 for 8-bit + // AMF VCN color conversion supports only specific output transfer characteristic SMPTE2084 for 10-bit and BT709 for 8-bit // vpp_amf supports more AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_OUTPUT_TRANSFER_CHARACTERISTIC, avctx->color_trc); } @@ -269,7 +269,7 @@ static av_cold int amf_encode_init_hevc(AVCodecContext *avctx) // Color Primaries (AMF matches ISO/IEC) if(avctx->color_primaries != AVCOL_PRI_UNSPECIFIED && (pix_fmt == AV_PIX_FMT_NV12 || pix_fmt == AV_PIX_FMT_P010)){ // if input is YUV, color_primaries are for VUI only - // AMF VCN color coversion supports only specifc output primaries BT2020 for 10-bit and BT709 for 8-bit + // AMF VCN color conversion supports only specific output primaries BT2020 for 10-bit and BT709 for 8-bit // vpp_amf supports more AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_OUTPUT_COLOR_PRIMARIES, avctx->color_primaries); } diff --git a/libavcodec/aptx.h b/libavcodec/aptx.h index da0697e652..8e5bf31ab2 100644 --- a/libavcodec/aptx.h +++ b/libavcodec/aptx.h @@ -108,7 +108,7 @@ typedef const struct { extern ConstTables ff_aptx_quant_tables[2][NB_SUBBANDS]; -/* Rounded right shift with optionnal clipping */ +/* Rounded right shift with optional clipping */ #define RSHIFT_SIZE(size) \ av_always_inline \ static int##size##_t rshift##size(int##size##_t value, int shift) \ diff --git a/libavcodec/arm/hevcdsp_idct_neon.S b/libavcodec/arm/hevcdsp_idct_neon.S index 66ed1c6785..feff373ff2 100644 --- a/libavcodec/arm/hevcdsp_idct_neon.S +++ b/libavcodec/arm/hevcdsp_idct_neon.S @@ -783,7 +783,7 @@ endfunc transpose8_4x4 d29, d3, d21, d23 store16 d22, d23, d20, d21, d2, d3, d28, d29, r8 - @ reload multiplication coefficiens to q1 + @ reload multiplication coefficients to q1 vld1.s16 {q1}, [r9, :128] .endm diff --git a/libavcodec/arm/hevcdsp_sao_neon.S b/libavcodec/arm/hevcdsp_sao_neon.S index 8fd9d1e0df..e5695027e4 100644 --- a/libavcodec/arm/hevcdsp_sao_neon.S +++ b/libavcodec/arm/hevcdsp_sao_neon.S @@ -100,7 +100,7 @@ function ff_hevc_sao_edge_filter_neon_8, export=1 mov r12, r4 // r12 = height mov r6, r0 // r6 = r0 = dst mov r7, r1 // r7 = r1 = src - vld1.8 {d0}, [r11] // edge_idx tabel load in d0 5x8bit + vld1.8 {d0}, [r11] // edge_idx table load in d0 5x8bit vld1.16 {q1}, [r10] // sao_offset_val table load in q1, 5x16bit vmov.u8 d1, #2 vmov.u16 q2, #1 diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c index 73ef6196c5..9376265d7a 100644 --- a/libavcodec/ass_split.c +++ b/libavcodec/ass_split.c @@ -1,5 +1,5 @@ /* - * SSA/ASS spliting functions + * SSA/ASS splitting functions * Copyright (c) 2010 Aurelien Jacobs * * This file is part of FFmpeg. diff --git a/libavcodec/ass_split.h b/libavcodec/ass_split.h index a45fb9b8a1..41191c0f44 100644 --- a/libavcodec/ass_split.h +++ b/libavcodec/ass_split.h @@ -1,5 +1,5 @@ /* - * SSA/ASS spliting functions + * SSA/ASS splitting functions * Copyright (c) 2010 Aurelien Jacobs * * This file is part of FFmpeg. diff --git a/libavcodec/atrac3plusdsp.c b/libavcodec/atrac3plusdsp.c index 802f12aec5..6942cba506 100644 --- a/libavcodec/atrac3plusdsp.c +++ b/libavcodec/atrac3plusdsp.c @@ -114,7 +114,7 @@ av_cold void ff_atrac3p_init_dsp_static(void) * @param[in] fdsp ptr to floating-point DSP context * @param[in] invert_phase flag indicating 180° phase shift * @param[in] reg_offset region offset for trimming envelope data - * @param[out] out receives sythesized data + * @param[out] out receives synthesized data */ static void waves_synth(Atrac3pWaveSynthParams *synth_param, Atrac3pWavesData *waves_info, diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c index e37f88500b..9114d645d0 100644 --- a/libavcodec/atrac9dec.c +++ b/libavcodec/atrac9dec.c @@ -80,7 +80,7 @@ typedef struct ATRAC9BlockData { int cpe_base_channel; int is_signs[30]; - int reuseable; + int reusable; } ATRAC9BlockData; @@ -689,7 +689,7 @@ static int atrac9_decode_block(ATRAC9Context *s, GetBitContext *gb, if (!reuse_params) { int stereo_band, ext_band; const int min_band_count = s->samplerate_idx > 7 ? 1 : 3; - b->reuseable = 0; + b->reusable = 0; b->band_count = get_bits(gb, 4) + min_band_count; b->q_unit_cnt = at9_tab_band_q_unit_map[b->band_count]; @@ -721,9 +721,9 @@ static int atrac9_decode_block(ATRAC9Context *s, GetBitContext *gb, } b->band_ext_q_unit = at9_tab_band_q_unit_map[ext_band]; } - b->reuseable = 1; + b->reusable = 1; } - if (!b->reuseable) { + if (!b->reusable) { av_log(s->avctx, AV_LOG_ERROR, "invalid block reused!\n"); return AVERROR_INVALIDDATA; } diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index a004cccd2d..108df5a24e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -225,7 +225,7 @@ typedef struct RcOverride{ #define AV_CODEC_FLAG_QPEL (1 << 4) /** * Request the encoder to output reconstructed frames, i.e.\ frames that would - * be produced by decoding the encoded bistream. These frames may be retrieved + * be produced by decoding the encoded bitstream. These frames may be retrieved * by calling avcodec_receive_frame() immediately after a successful call to * avcodec_receive_packet(). * @@ -2900,7 +2900,7 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, * * @note for encoders, this function will only do something if the encoder * declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder - * will drain any remaining packets, and can then be re-used for a different + * will drain any remaining packets, and can then be reused for a different * stream (as opposed to sending a null frame which will leave the encoder * in a permanent EOF state after draining). This can be desirable if the * cost of tearing down and replacing the encoder instance is high. diff --git a/libavcodec/bsf/h266_metadata.c b/libavcodec/bsf/h266_metadata.c index 1f0f875cfe..2242c620fa 100644 --- a/libavcodec/bsf/h266_metadata.c +++ b/libavcodec/bsf/h266_metadata.c @@ -80,7 +80,7 @@ static int h266_metadata_update_fragment(AVBSFContext *bsf, AVPacket *pkt, } } if (!ph) { - av_log(bsf, AV_LOG_ERROR, "no avaliable picture header"); + av_log(bsf, AV_LOG_ERROR, "no available picture header"); return AVERROR_INVALIDDATA; } diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index 3cf8c9fb3a..e076cfc47f 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -1184,7 +1184,7 @@ static int decode_seq_header(AVSContext *h) h->profile = get_bits(&h->gb, 8); if (h->profile != 0x20) { avpriv_report_missing_feature(h->avctx, - "only supprt JiZhun profile"); + "only support JiZhun profile"); return AVERROR_PATCHWELCOME; } h->level = get_bits(&h->gb, 8); diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 67f2ec9e50..8c4614479f 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -516,7 +516,7 @@ enum CbsDiscardFlags { }; /** - * Discard units accroding to 'skip'. + * Discard units according to 'skip'. */ void CBS_FUNC(discard_units)(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index 32703d4493..e2cc461bff 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @@ -1725,7 +1725,7 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, RWContext *rw, current->pps_pic_height_in_luma_samples != sps->sps_pic_height_max_in_luma_samples)) { av_log(ctx->log_ctx, AV_LOG_ERROR, - "Resoltuion change is not allowed, " + "Resolution change is not allowed, " "in max resolution (%ux%u) mismatched with pps(%ux%u).\n", sps->sps_pic_width_max_in_luma_samples, sps->sps_pic_height_max_in_luma_samples, diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h index c3265924ba..37398ef416 100644 --- a/libavcodec/cbs_internal.h +++ b/libavcodec/cbs_internal.h @@ -273,7 +273,7 @@ int CBS_FUNC(write_signed)(CodedBitstreamContext *ctx, PutBitContext *pbc, } while (0) // End of a syntax element which is made up of subelements which -// are aleady traced, so we are only showing the value. +// are already traced, so we are only showing the value. #define CBS_TRACE_READ_END_VALUE_ONLY() \ do { \ if (ctx->trace_enable) { \ @@ -310,7 +310,7 @@ int CBS_FUNC(write_signed)(CodedBitstreamContext *ctx, PutBitContext *pbc, } while (0) // End of a syntax element which is made up of subelements which are -// aleady traced, so we are only showing the value. This forges a +// already traced, so we are only showing the value. This forges a // PutBitContext to point to the position of the start of the syntax // element, but the other state doesn't matter because length is zero. #define CBS_TRACE_WRITE_END_VALUE_ONLY() \ diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index 01bdc4d537..6f4d4fca41 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -814,7 +814,7 @@ static int process_cc608(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo) break; case 0x2e: /* erase buffered (non displayed) memory */ - // Only in realtime mode. In buffered mode, we re-use the inactive screen + // Only in realtime mode. In buffered mode, we reuse the inactive screen // for our own buffering. if (ctx->real_time) { struct Screen *screen = ctx->screen + !ctx->active_screen; diff --git a/libavcodec/codec_par.h b/libavcodec/codec_par.h index f4b9bb5c06..64b01f7e02 100644 --- a/libavcodec/codec_par.h +++ b/libavcodec/codec_par.h @@ -148,7 +148,7 @@ typedef struct AVCodecParameters { * durations. Should be set to { 0, 1 } when some frames have differing * durations or if the value is not known. * - * @note This field correponds to values that are stored in codec-level + * @note This field corresponds to values that are stored in codec-level * headers and is typically overridden by container/transport-layer * timestamps, when available. It should thus be used only as a last resort, * when no higher-level timing information is available. diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index 005a51ed69..0e9a4e77e7 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -311,7 +311,7 @@ static int chs_parse_header(DCAXllDecoder *s, DCAXllChSet *c, DCAExssAsset *asse b->highest_pred_order = b->adapt_pred_order[i]; } if (b->highest_pred_order > s->nsegsamples) { - av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL adaptive predicition order\n"); + av_log(s->avctx, AV_LOG_ERROR, "Invalid XLL adaptive prediction order\n"); return AVERROR_INVALIDDATA; } @@ -666,7 +666,7 @@ static void chs_filter_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band) } } - // Inverse pairwise channel decorrellation + // Inverse pairwise channel decorrelation if (b->decor_enabled) { int32_t *tmp[DCA_XLL_CHANNELS_MAX]; diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c index 902c617e72..6387f7b5ec 100644 --- a/libavcodec/dcaenc.c +++ b/libavcodec/dcaenc.c @@ -854,7 +854,7 @@ static int init_quantization_noise(DCAEncContext *c, int noise, int forbid_zero) if (c->lfe_channel) c->consumed_bits += 72; - /* attempt to guess the bit distribution based on the prevoius frame */ + /* attempt to guess the bit distribution based on the previous frame */ for (ch = 0; ch < c->fullband_channels; ch++) { for (band = 0; band < 32; band++) { int snr_cb = c->peak_cb[ch][band] - c->band_masking_cb[band] - noise; diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index 76209aebba..2eabf74274 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -826,7 +826,7 @@ static int subband_coeffs(const DiracContext *s, int x, int y, int p, int level, coef = 0; for (level = 0; level < s->wavelet_depth; level++) { SliceCoeffs *o = &c[level]; - const SubBand *b = &s->plane[p].band[level][3]; /* orientation doens't matter */ + const SubBand *b = &s->plane[p].band[level][3]; /* orientation doesn't matter */ o->top = b->height * y / s->num_y; o->left = b->width * x / s->num_x; o->tot_h = ((b->width * (x + 1)) / s->num_x) - o->left; diff --git a/libavcodec/dovi_rpudec.c b/libavcodec/dovi_rpudec.c index ed691fd149..4750d48337 100644 --- a/libavcodec/dovi_rpudec.c +++ b/libavcodec/dovi_rpudec.c @@ -365,7 +365,7 @@ int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size, /* Container */ if (s->cfg.dv_profile == 10 /* dav1.10 */) { - /* DV inside AV1 re-uses an EMDF container skeleton, but with fixed + /* DV inside AV1 reuses an EMDF container skeleton, but with fixed * values - so we can effectively treat this as a magic byte sequence. * * The exact fields are, as follows: diff --git a/libavcodec/dovi_rpuenc.c b/libavcodec/dovi_rpuenc.c index b05ad0a358..fa351c2b55 100644 --- a/libavcodec/dovi_rpuenc.c +++ b/libavcodec/dovi_rpuenc.c @@ -300,7 +300,7 @@ static int cmp_dm_level0(const AVDOVIColorMetadata *dm1, sizeof(AVDOVIColorMetadata) -offsetof(AVDOVIColorMetadata, signal_eotf)); } -/* Tries to re-use the static ext blocks. May reorder `ext->dm_static` */ +/* Tries to reuse the static ext blocks. May reorder `ext->dm_static` */ static int try_reuse_ext(DOVIExt *ext, const AVDOVIMetadata *metadata) { int i, j, idx = 0; diff --git a/libavcodec/evc.h b/libavcodec/evc.h index d68dc74997..418c05a8e8 100644 --- a/libavcodec/evc.h +++ b/libavcodec/evc.h @@ -56,7 +56,7 @@ enum EVCNALUnitType { EVC_RSV_VCL_NUT22 = 22, EVC_RSV_VCL_NUT23 = 23, EVC_SPS_NUT = 24, /* Sequence parameter set */ - EVC_PPS_NUT = 25, /* Picture paremeter set */ + EVC_PPS_NUT = 25, /* Picture parameter set */ EVC_APS_NUT = 26, /* Adaptation parameter set */ EVC_FD_NUT = 27, /* Filler data */ EVC_SEI_NUT = 28, /* Supplemental enhancement information */ diff --git a/libavcodec/evc_parse.h b/libavcodec/evc_parse.h index 4712310826..4452c32d6a 100644 --- a/libavcodec/evc_parse.h +++ b/libavcodec/evc_parse.h @@ -31,7 +31,7 @@ #include "evc.h" #include "evc_ps.h" -// The sturcture reflects Slice Header RBSP(raw byte sequence payload) layout +// The structure reflects Slice Header RBSP(raw byte sequence payload) layout // @see ISO_IEC_23094-1 section 7.3.2.6 // // The following descriptors specify the parsing process of each element diff --git a/libavcodec/evc_ps.h b/libavcodec/evc_ps.h index 336953b176..dd0e151c46 100644 --- a/libavcodec/evc_ps.h +++ b/libavcodec/evc_ps.h @@ -102,7 +102,7 @@ typedef struct VUIParameters { HRDParameters hrd_parameters; } VUIParameters; -// The sturcture reflects SPS RBSP(raw byte sequence payload) layout +// The structure reflects SPS RBSP(raw byte sequence payload) layout // @see ISO_IEC_23094-1 section 7.3.2.1 // // The following descriptors specify the parsing process of each element diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c index 44d5bee722..9059f67815 100644 --- a/libavcodec/evrcdec.c +++ b/libavcodec/evrcdec.c @@ -182,7 +182,7 @@ static evrc_packet_rate buf_size2bitrate(const int buf_size) * * @param avctx the AV codec context * @param buf_size length of the buffer - * @param buf the bufffer + * @param buf the buffer * * @return the bitrate on success, * RATE_ERRS if the bitrate cannot be satisfactorily determined diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index cc3a04903f..97b38e4d16 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -979,7 +979,7 @@ static av_cold int encode_init_internal(AVCodecContext *avctx) if ((ret = ff_ffv1_common_init(avctx, s)) < 0) return ret; - if (s->ac == 1) // Compatbility with common command line usage + if (s->ac == 1) // Compatibility with common command line usage s->ac = AC_RANGE_CUSTOM_TAB; else if (s->ac == AC_RANGE_DEFAULT_TAB_FORCE) s->ac = AC_RANGE_DEFAULT_TAB; diff --git a/libavcodec/flac_parse.h b/libavcodec/flac_parse.h index b0cbad825e..78485b3320 100644 --- a/libavcodec/flac_parse.h +++ b/libavcodec/flac_parse.h @@ -58,7 +58,7 @@ typedef struct FLACFrameInfo { * @param[out] s where parsed information is stored * @param[in] buffer pointer to start of 34-byte streaminfo data * - * @return negative error code on faiure or >= 0 on success + * @return negative error code on failure or >= 0 on success */ int ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer); diff --git a/libavcodec/g729postfilter.c b/libavcodec/g729postfilter.c index b1880b2fe1..824253477f 100644 --- a/libavcodec/g729postfilter.c +++ b/libavcodec/g729postfilter.c @@ -211,8 +211,8 @@ static int16_t long_term_filter(AudioDSPContext *adsp, int pitch_delay_int, /* Compute signals with non-integer delay k (with 1/8 precision), where k is in [0;6] range. Entire delay is qual to best_delay+(k+1)/8 - This is archieved by applying an interpolation filter of - legth 33 to source signal. */ + This is achieved by applying an interpolation filter of + length 33 to source signal. */ for (k = 0; k < ANALYZED_FRAC_DELAYS; k++) { ff_acelp_interpolate(&delayed_signal[k][0], &sig_scaled[RES_PREV_DATA_SIZE - best_delay_int], diff --git a/libavcodec/h264_parse.h b/libavcodec/h264_parse.h index 3481451c10..ad5099edb5 100644 --- a/libavcodec/h264_parse.h +++ b/libavcodec/h264_parse.h @@ -36,7 +36,7 @@ #define MB_TYPE_REF0 MB_TYPE_CODEC_SPECIFIC #define MB_TYPE_8x8DCT 0x01000000 -// This table must be here because scan8[constant] must be known at compiletime +// This table must be here because scan8[constant] must be known at compile time static const uint8_t scan8[16 * 3 + 3] = { 4 + 1 * 8, 5 + 1 * 8, 4 + 2 * 8, 5 + 2 * 8, 6 + 1 * 8, 7 + 1 * 8, 6 + 2 * 8, 7 + 2 * 8, diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 82b85b3387..b1cf0f81b3 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -754,7 +754,7 @@ static int decode_nal_units(H264Context *h, AVBufferRef *buf_ref, if (h->cur_pic_ptr->decode_error_flags) { /* Frame-threading in use */ atomic_int *decode_error = h->cur_pic_ptr->decode_error_flags; - /* Using atomics here is not supposed to provide syncronisation; + /* Using atomics here is not supposed to provide synchronisation; * they are merely used to allow to set decode_error from both * decoding threads in case of coded slices. */ atomic_fetch_or_explicit(decode_error, FF_DECODE_ERROR_DECODE_SLICES, diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index c28d278240..1df99015cc 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -541,7 +541,7 @@ typedef struct H264Context { * all subsequently output fraames are also marked as recovered * * In effect, if you want all subsequent DECODED frames marked as recovered, set frame_recovered - * If you want all subsequent DISPAYED frames marked as recovered, set the frame->recovered + * If you want all subsequent DISPLAYED frames marked as recovered, set the frame->recovered */ int frame_recovered; diff --git a/libavcodec/h274.c b/libavcodec/h274.c index e46926e4cc..248af8119b 100644 --- a/libavcodec/h274.c +++ b/libavcodec/h274.c @@ -96,7 +96,7 @@ static void init_slice_c(int8_t out[64][64], uint8_t h, uint8_t v, } } - // Deblock horizontal edges by simple attentuation of values + // Deblock horizontal edges by simple attenuation of values for (int y = 0; y < 64; y += 8) { for (int x = 0; x < 64; x++) { out[y + 0][x] = (out[y + 0][x] * deblock_coeff) >> 7; @@ -239,7 +239,7 @@ int ff_h274_apply_film_grain(AVFrame *out_frame, const AVFrame *in_frame, uint8_t * const out = out_frame->data[c]; const int out_stride = out_frame->linesize[c]; - int8_t * const grain = out_frame->data[c]; // re-use output buffer for grain + int8_t * const grain = out_frame->data[c]; // reuse output buffer for grain const int grain_stride = out_stride; const uint8_t * const in = in_frame->data[c]; const int in_stride = in_frame->linesize[c]; diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c index c4b790035f..a0b199906d 100644 --- a/libavcodec/hapenc.c +++ b/libavcodec/hapenc.c @@ -305,7 +305,7 @@ static av_cold int hap_init(AVCodecContext *avctx) } break; default: - av_log(avctx, AV_LOG_ERROR, "Invalid compresor %02X\n", ctx->opt_compressor); + av_log(avctx, AV_LOG_ERROR, "Invalid compressor %02X\n", ctx->opt_compressor); return AVERROR_INVALIDDATA; } if (corrected_chunk_count != ctx->opt_chunk_count) { diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index a5012cf062..f44bda8a92 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3544,7 +3544,7 @@ static int decode_slice(HEVCContext *s, unsigned nal_idx, GetBitContext *gb) ret = hls_slice_header(&s->sh, s, gb); if (ret < 0) { - // hls_slice_header() does not cleanup on failure thus the state now is inconsistant so we cannot use it on depandant slices + // hls_slice_header() does not cleanup on failure thus the state now is inconsistent so we cannot use it on dependent slices s->slice_initialized = 0; return ret; } @@ -4206,7 +4206,7 @@ static void hevc_decode_flush(AVCodecContext *avctx) static const AVOption options[] = { { "apply_defdispwin", "Apply default display window from VUI", OFFSET(apply_defdispwin), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, PAR }, - { "strict-displaywin", "stricly apply default display window size", OFFSET(apply_defdispwin), + { "strict-displaywin", "strictly apply default display window size", OFFSET(apply_defdispwin), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, PAR }, { "view_ids", "Array of view IDs that should be decoded and output; a single -1 to decode all views", .offset = OFFSET(view_ids), .type = AV_OPT_TYPE_INT | AV_OPT_TYPE_FLAG_ARRAY, diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index 7fea39b43c..a9dfa857a2 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -1097,7 +1097,7 @@ static void do_plc(int16_t *plc_residual, /* (o) concealed residual */ use_gain = 29491; /* 0.9 in Q15 */ } - /* Compute mixing factor of picth repeatition and noise: + /* Compute mixing factor of picth repetition and noise: for max_per>0.7 set periodicity to 1.0 0.4prevResidual[pick]; } - /* pitch repeatition component */ + /* pitch repetition component */ pick = i - use_lag; if (pick < 0) { @@ -1160,7 +1160,7 @@ static void do_plc(int16_t *plc_residual, /* (o) concealed residual */ tot_gain = SPL_MUL_16_16_RSFT(29491, use_gain, 15); /* 0.9*use_gain */ } - /* mix noise and pitch repeatition */ + /* mix noise and pitch repetition */ plc_residual[i] = SPL_MUL_16_16_RSFT(tot_gain, (pitchfact * plc_residual[i] + (32767 - pitchfact) * randvec[i] + 16384) >> 15, 15); /* Shifting down the result one step extra to ensure that no overflow diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index 449e8dead2..18a61eaa7d 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -1802,7 +1802,7 @@ static int j2kenc_destroy(AVCodecContext *avctx) return 0; } -// taken from the libopenjpeg wraper so it matches +// taken from the libopenjpeg wrapper so it matches #define OFFSET(x) offsetof(Jpeg2000EncoderContext, x) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index b82d85d5ee..9a4afd37d0 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1362,7 +1362,7 @@ static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, } bits_to_read = (uint8_t) (bits_to_read + cblk->lblock); segment_bytes = get_bits(s, bits_to_read); - // Write length information for HT Refinment segment + // Write length information for HT Refinement segment cblk->pass_lengths[1] += segment_bytes; } else if (!(cblk->modes & (JPEG2000_CBLK_TERMALL | JPEG2000_CBLK_BYPASS))) { // Common case for non-HT code-blocks; we have only one segment @@ -2814,7 +2814,7 @@ static av_cold int jpeg2000_decode_init(AVCodecContext *avctx) Jpeg2000DecoderContext *s = avctx->priv_data; if (avctx->lowres) - av_log(avctx, AV_LOG_WARNING, "lowres is overriden by reduction_factor but set anyway\n"); + av_log(avctx, AV_LOG_WARNING, "lowres is overridden by reduction_factor but set anyway\n"); if (!s->reduction_factor && avctx->lowres < JPEG2000_MAX_RESLEVELS) { s->reduction_factor = avctx->lowres; } diff --git a/libavcodec/libaribcaption.c b/libavcodec/libaribcaption.c index 53d334803f..66d18b9d38 100644 --- a/libavcodec/libaribcaption.c +++ b/libavcodec/libaribcaption.c @@ -250,7 +250,7 @@ static uint8_t clut_pick_or_set(ARIBCaptionContext *ctx, int r, int g, int b, in return c; } -/* initialiaze CLUT with each character colors */ +/* initialize CLUT with each character colors */ static void clut_init(ARIBCaptionContext *ctx, aribcc_caption_region_t *region) { aribcc_color_t text_color, back_color, stroke_color; diff --git a/libavcodec/libjxlenc.c b/libavcodec/libjxlenc.c index 823abcafb8..40d5f760b1 100644 --- a/libavcodec/libjxlenc.c +++ b/libavcodec/libjxlenc.c @@ -93,7 +93,7 @@ static float quality_to_distance(float quality) } /** - * Initalize the encoder on a per-file basis. All of these need to be set + * Initialize the encoder on a per-file basis. All of these need to be set * once each time the encoder is reset, which is each frame for still * images, to make the image2 muxer work. For animation this is run once. * diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c index 7f9fbf6929..8e71fb54fe 100644 --- a/libavcodec/liboapvenc.c +++ b/libavcodec/liboapvenc.c @@ -44,7 +44,7 @@ #define MAX_BS_BUF (128 * 1024 * 1024) #define MAX_NUM_FRMS (1) // supports only 1-frame in an access unit #define FRM_IDX (0) // supports only 1-frame in an access unit -#define MAX_NUM_CC (OAPV_MAX_CC) // Max number of color componets (upto 4:4:4:4) +#define MAX_NUM_CC (OAPV_MAX_CC) // Max number of color components (upto 4:4:4:4) /** * The structure stores all the states associated with the instance of APV encoder @@ -393,7 +393,7 @@ static int liboapve_encode(AVCodecContext *avctx, AVPacket *avpkt, uint8_t *data = apv->bitb.addr; int size = apv->stat.write; - // The encoder may return a "Raw bitstream" formated AU, including au_size. + // The encoder may return a "Raw bitstream" formatted AU, including au_size. // Discard it as we only need the access_unit() structure. if (size > 4 && AV_RB32(data) != APV_SIGNATURE) { data += 4; diff --git a/libavcodec/loongarch/hevc_mc.S b/libavcodec/loongarch/hevc_mc.S index 12d92e32e9..b0eca55e68 100644 --- a/libavcodec/loongarch/hevc_mc.S +++ b/libavcodec/loongarch/hevc_mc.S @@ -674,7 +674,7 @@ endfunc vdp2.h.bu.b \out1, \in1, vr5 vdp2.h.bu.b vr12, \in2, vr5 vdp2.h.bu.b vr20, \in3, vr5 - vbsrl.v \in0, \in0, 1 //Back up previous 7 loaded datas, + vbsrl.v \in0, \in0, 1 //Back up previous 7 loaded data, vbsrl.v \in1, \in1, 1 //so just need to insert the 8th vbsrl.v \in2, \in2, 1 //load in the next loop. vbsrl.v \in3, \in3, 1 @@ -903,7 +903,7 @@ endfunc xvhaddw.d.h xr7 xvhaddw.d.h xr8 xvhaddw.d.h xr9 - xvbsrl.v xr14, xr14, 1 //Back up previous 7 loaded datas, + xvbsrl.v xr14, xr14, 1 //Back up previous 7 loaded data, xvbsrl.v xr15, xr15, 1 //so just need to insert the 8th xvbsrl.v xr16, xr16, 1 //load in next loop. xvbsrl.v xr17, xr17, 1 diff --git a/libavcodec/loongarch/loongson_asm.S b/libavcodec/loongarch/loongson_asm.S index 0a649f51c7..5edec9b823 100644 --- a/libavcodec/loongarch/loongson_asm.S +++ b/libavcodec/loongarch/loongson_asm.S @@ -332,7 +332,7 @@ ASM_PREF\name: ; /* * Description : Store elements of vector - * vd : Data vector to be stroed + * vd : Data vector to be stored * rk : Address of data storage * ra : Offset of address * si : Index of data in vd diff --git a/libavcodec/loongarch/vc1dsp_loongarch.h b/libavcodec/loongarch/vc1dsp_loongarch.h index e5ccbcb768..30589e248a 100644 --- a/libavcodec/loongarch/vc1dsp_loongarch.h +++ b/libavcodec/loongarch/vc1dsp_loongarch.h @@ -30,7 +30,7 @@ void ff_vc1_inv_trans_8x8_dc_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *bloc void ff_vc1_inv_trans_8x4_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); void ff_vc1_inv_trans_8x4_dc_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); void ff_vc1_inv_trans_4x8_dc_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); -void ff_vc1_inv_trans_4x8_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *blokc); +void ff_vc1_inv_trans_4x8_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); void ff_vc1_inv_trans_4x4_dc_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); void ff_vc1_inv_trans_4x4_lasx(uint8_t *dest, ptrdiff_t stride, int16_t *block); diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c index 02b570d618..80a54638bc 100644 --- a/libavcodec/magicyuvenc.c +++ b/libavcodec/magicyuvenc.c @@ -50,7 +50,7 @@ typedef struct HuffEntry { typedef struct PTable { int value; ///< input value - int64_t prob; ///< number of occurences of this value in input + int64_t prob; ///< number of occurrences of this value in input } PTable; typedef struct Slice { diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index a2dca7a88a..15a4ebc7f1 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2124,7 +2124,7 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) av_log(s->avctx, AV_LOG_WARNING, "Invalid number of markers coded in APP2\n"); goto out; } else if (s->iccnum != 0 && nummarkers != s->iccnum) { - av_log(s->avctx, AV_LOG_WARNING, "Mistmatch in coded number of ICC markers between markers\n"); + av_log(s->avctx, AV_LOG_WARNING, "Mismatch in coded number of ICC markers between markers\n"); goto out; } else if (seqno > nummarkers) { av_log(s->avctx, AV_LOG_WARNING, "Mismatching sequence number and coded number of ICC markers\n"); diff --git a/libavcodec/mjpegenc_huffman.c b/libavcodec/mjpegenc_huffman.c index 7fd63a2569..5a0d8b0b48 100644 --- a/libavcodec/mjpegenc_huffman.c +++ b/libavcodec/mjpegenc_huffman.c @@ -30,7 +30,7 @@ */ typedef struct PTable { int value; ///< input value - int prob; ///< number of occurences of this value in input + int prob; ///< number of occurrences of this value in input } PTable; /** @@ -179,7 +179,7 @@ void ff_mjpeg_encode_huffman_close(MJpegEncHuffmanContext *s, uint8_t bits[17], // val_counts[0] is the fake element we added earlier. av_assert1(val_counts[0].prob == 0 && val_counts[0].value == 256); - // The following loop puts the values with higher occurence first, + // The following loop puts the values with higher occurrence first, // ensuring that they get the shorter codes. for (int i = 0; i < nval; ++i) val[i] = val_counts[nval - i].value; diff --git a/libavcodec/mlz.h b/libavcodec/mlz.h index 24993126ca..666a8d0b24 100644 --- a/libavcodec/mlz.h +++ b/libavcodec/mlz.h @@ -42,7 +42,7 @@ typedef struct MLZDict { int match_len; } MLZDict; -/** MLZ data strucure +/** MLZ data structure */ typedef struct MLZ { int dic_code_bit; diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c index fd8c7dc9f7..b78dadfc07 100644 --- a/libavcodec/movtextenc.c +++ b/libavcodec/movtextenc.c @@ -259,7 +259,7 @@ static int encode_sample_description(AVCodecContext *avctx) // Build font table // We can't build a complete font table since that would require // scanning all dialogs first. But we can at least fill in what - // is avaiable in the ASS header + // is available in the ASS header if (style && ass->styles_count) { // Find unique font names if (style->font_name) { diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index df6cfff04b..bc2c92672a 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -3592,7 +3592,7 @@ int ff_mpeg4_parse_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb, // If we have not switched to studio profile than we also did not switch bps // that means something else (like a previous instance) outside set bps which - // would be inconsistant with the currect state, thus reset it + // would be inconsistent with the correct state, thus reset it if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) s->avctx->bits_per_raw_sample = 0; diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c index c73b1e0054..d7c5210eb8 100644 --- a/libavcodec/mpegaudiodec_template.c +++ b/libavcodec/mpegaudiodec_template.c @@ -1770,7 +1770,7 @@ static av_cold int decode_init_mp3on4(AVCodecContext * avctx) else s->syncword = 0xfff00000; - /* Init the first mp3 decoder in standard way, so that all tables get builded + /* Init the first mp3 decoder in standard way, so that all tables get built * We replace avctx->priv_data with the context of the first decoder so that * decode_init() does not have to be changed. * Other decoders will be initialized here copying data from the first context diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 3ab097d6f6..dbf4d25136 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1828,7 +1828,7 @@ static int select_input_picture(MPVMainEncContext *const m) if (m->reordered_input_picture[0]->shared || s->c.avctx->rc_buffer_size) { // input is a shared pix, so we can't modify it -> allocate a new - // one & ensure that the shared one is reuseable + // one & ensure that the shared one is reusable av_frame_move_ref(s->new_pic, m->reordered_input_picture[0]->f); ret = prepare_picture(s, m->reordered_input_picture[0]->f, s->new_pic); diff --git a/libavcodec/nellymoser.c b/libavcodec/nellymoser.c index 66c5f83a56..890e573abf 100644 --- a/libavcodec/nellymoser.c +++ b/libavcodec/nellymoser.c @@ -28,7 +28,7 @@ /** * @file * The 3 alphanumeric copyright notices are md5summed they are from the original - * implementors. The original code is available from http://code.google.com/p/nelly2pcm/ + * implementers. The original code is available from http://code.google.com/p/nelly2pcm/ */ #include diff --git a/libavcodec/nellymoser.h b/libavcodec/nellymoser.h index 6d032c97be..3470bfa6b5 100644 --- a/libavcodec/nellymoser.h +++ b/libavcodec/nellymoser.h @@ -28,7 +28,7 @@ /** * @file * The 3 alphanumeric copyright notices are md5summed they are from the original - * implementors. The original code is available from http://code.google.com/p/nelly2pcm/ + * implementers. The original code is available from http://code.google.com/p/nelly2pcm/ */ #ifndef AVCODEC_NELLYMOSER_H diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 6442fac7a8..bfde5bba26 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -28,7 +28,7 @@ /** * @file * The 3 alphanumeric copyright notices are md5summed they are from the original - * implementors. The original code is available from http://code.google.com/p/nelly2pcm/ + * implementers. The original code is available from http://code.google.com/p/nelly2pcm/ */ #include "libavutil/channel_layout.h" diff --git a/libavcodec/opus/enc.c b/libavcodec/opus/enc.c index f603b422a0..8d20b6c192 100644 --- a/libavcodec/opus/enc.c +++ b/libavcodec/opus/enc.c @@ -433,7 +433,7 @@ static void celt_encode_frame(OpusEncContext *s, OpusRangeCoder *rc, if (f->silence) { if (f->framebits >= 16) - ff_opus_rc_enc_log(rc, 1, 15); /* Silence (if using explicit singalling) */ + ff_opus_rc_enc_log(rc, 1, 15); /* Silence (if using explicit signalling) */ for (int ch = 0; ch < s->channels; ch++) memset(s->last_quantized_energy[ch], 0.0f, sizeof(float)*CELT_MAX_BANDS); return; diff --git a/libavcodec/opus/tab.c b/libavcodec/opus/tab.c index d1f2f8c8c2..5147b66b69 100644 --- a/libavcodec/opus/tab.c +++ b/libavcodec/opus/tab.c @@ -1155,7 +1155,7 @@ const uint32_t * const ff_celt_pvq_u_row[15] = { }; /* Deemphasis constant (alpha_p), as specified in RFC6716 as 0.8500061035. - * libopus uses a slighly rounded constant, set to 0.85 exactly, + * libopus uses a slightly rounded constant, set to 0.85 exactly, * to simplify its fixed-point version, but it's not significant to impact * compliance. */ #define CELT_EMPH_COEFF 0.8500061035 diff --git a/libavcodec/packet.h b/libavcodec/packet.h index 2e4a9a8184..55389a957d 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -142,7 +142,7 @@ enum AVPacketSideDataType { AV_PKT_DATA_CPB_PROPERTIES, /** - * Recommmends skipping the specified number of samples + * Recommends skipping the specified number of samples * @code * u32le number of samples to skip from start of this packet * u32le number of samples to skip from end of this packet diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index d93bcf1b6a..20583c9afa 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -447,7 +447,7 @@ static int parse_presentation_segment(AVCodecContext *avctx, PGSSubObjectRef *const object = &ctx->presentation.objects[i]; if (buf_end - buf < 8) { - av_log(avctx, AV_LOG_ERROR, "Insufficent space for object\n"); + av_log(avctx, AV_LOG_ERROR, "Insufficient space for object\n"); ctx->presentation.object_count = i; return AVERROR_INVALIDDATA; } diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index a6f2a1a342..428bc150a9 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -172,7 +172,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame, 1 byte run (=0) 2 bytes run 1 byte val - thats 5 bytes and the maximum run we can code is 65535 + that's 5 bytes and the maximum run we can code is 65535 The RLE decoder can exit prematurly but it does not on any image available Based on this the formula is assumed correct for undamaged images. diff --git a/libavcodec/ppc/hpeldsp_altivec.c b/libavcodec/ppc/hpeldsp_altivec.c index 4bf6b28ed6..d8cf7518d5 100644 --- a/libavcodec/ppc/hpeldsp_altivec.c +++ b/libavcodec/ppc/hpeldsp_altivec.c @@ -46,7 +46,7 @@ void ff_put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, ptrdiff_t li register ptrdiff_t line_size_4 = line_size * (1 << 2); // hand-unrolling the loop by 4 gains about 15% -// mininum execution time goes from 74 to 60 cycles +// minimum execution time goes from 74 to 60 cycles // it's faster than -funroll-loops, but using // -funroll-loops w/ this is bad - 74 cycles again. // all this is on a 7450, tuning for the 7450 diff --git a/libavcodec/ppc/vp8dsp_altivec.c b/libavcodec/ppc/vp8dsp_altivec.c index 061914fc38..9d637af00b 100644 --- a/libavcodec/ppc/vp8dsp_altivec.c +++ b/libavcodec/ppc/vp8dsp_altivec.c @@ -312,7 +312,7 @@ static void put_vp8_pixels16_altivec(uint8_t *dst, ptrdiff_t dstride, const uint perm = vec_lvsl(0, src); #endif // hand-unrolling the loop by 4 gains about 15% -// mininum execution time goes from 74 to 60 cycles +// minimum execution time goes from 74 to 60 cycles // it's faster than -funroll-loops, but using // -funroll-loops w/ this is bad - 74 cycles again. // all this is on a 7450, tuning for the 7450 diff --git a/libavcodec/psd.c b/libavcodec/psd.c index f0b90ec1bd..ea88f254bf 100644 --- a/libavcodec/psd.c +++ b/libavcodec/psd.c @@ -173,10 +173,10 @@ static int decode_header(PSDContext * s) } bytestream2_skip(&s->gb, len_section); - /* image ressources */ + /* image resources */ len_section = bytestream2_get_be32(&s->gb); if (len_section < 0) { - av_log(s->avctx, AV_LOG_ERROR, "Negative size for image ressources section.\n"); + av_log(s->avctx, AV_LOG_ERROR, "Negative size for image resources section.\n"); return AVERROR_INVALIDDATA; } diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 19fa791c10..144cf5b9e9 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -696,7 +696,7 @@ static int qsv_export_hdr_side_data(AVCodecContext *avctx, mfxExtMasteringDispla { int ret; - // The SDK re-uses this flag for HDR SEI parsing + // The SDK reuses this flag for HDR SEI parsing if (mdcv->InsertPayloadToggle) { AVMasteringDisplayMetadata *mastering; const int mapping[3] = {2, 0, 1}; @@ -726,7 +726,7 @@ static int qsv_export_hdr_side_data(AVCodecContext *avctx, mfxExtMasteringDispla } } - // The SDK re-uses this flag for HDR SEI parsing + // The SDK reuses this flag for HDR SEI parsing if (clli->InsertPayloadToggle) { AVContentLightMetadata *light; @@ -1002,7 +1002,7 @@ static int qsv_process_data(AVCodecContext *avctx, QSVContext *q, // sw_pix_fmt, coded_width/height should be set for ff_get_format(), // assume sw_pix_fmt is NV12 and coded_width/height to be 1280x720, - // the assumption may be not corret but will be updated after header decoded if not true. + // the assumption may be not correct but will be updated after header decoded if not true. if (q->orig_pix_fmt != AV_PIX_FMT_NONE) pix_fmt = q->orig_pix_fmt; if (!avctx->coded_width) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index f0b572ec29..318a99e2a1 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -2057,7 +2057,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame, } } else { /* make a copy if the input is not padded as libmfx requires */ - /* and to make allocation continious for data[0]/data[1] */ + /* and to make allocation continuous for data[0]/data[1] */ if ((frame->height & (q->height_align - 1) || frame->linesize[0] & (q->width_align - 1)) || ((frame->format == AV_PIX_FMT_NV12 || frame->format == AV_PIX_FMT_P010 || frame->format == AV_PIX_FMT_P012) && (frame->data[1] - frame->data[0] != frame->linesize[0] * FFALIGN(qf->frame->height, q->height_align)))) { diff --git a/libavcodec/riscv/aacencdsp_init.c b/libavcodec/riscv/aacencdsp_init.c index a2dc0a8d3f..7b4e595af9 100644 --- a/libavcodec/riscv/aacencdsp_init.c +++ b/libavcodec/riscv/aacencdsp_init.c @@ -1,6 +1,6 @@ /* * AAC encoder assembly optimizations - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/aacencdsp_rvv.S b/libavcodec/riscv/aacencdsp_rvv.S index 83d1868079..e19b209a11 100644 --- a/libavcodec/riscv/aacencdsp_rvv.S +++ b/libavcodec/riscv/aacencdsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * Copyright © 2024 Rémi Denis-Courmont. * * This file is part of FFmpeg. diff --git a/libavcodec/riscv/ac3dsp_rvv.S b/libavcodec/riscv/ac3dsp_rvv.S index 7f8a9138a2..b1eded0280 100644 --- a/libavcodec/riscv/ac3dsp_rvv.S +++ b/libavcodec/riscv/ac3dsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/blockdsp_init.c b/libavcodec/riscv/blockdsp_init.c index adde0b890b..81c0e38b94 100644 --- a/libavcodec/riscv/blockdsp_init.c +++ b/libavcodec/riscv/blockdsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/blockdsp_rvv.S b/libavcodec/riscv/blockdsp_rvv.S index 04da265417..99760e98b9 100644 --- a/libavcodec/riscv/blockdsp_rvv.S +++ b/libavcodec/riscv/blockdsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/h263dsp_rvv.S b/libavcodec/riscv/h263dsp_rvv.S index e9cb4ec07b..704344ec0b 100644 --- a/libavcodec/riscv/h263dsp_rvv.S +++ b/libavcodec/riscv/h263dsp_rvv.S @@ -43,7 +43,7 @@ func ff_h263_h_loop_filter_rvv, zve32x vsrl.vi v18, v16, 16 - 3 # v18 = (v16 < 0) ? 7 : 0 slli t2, t1, 1 # 2 * strength vadd.vv v16, v16, v18 - # v16 (d) is signed 7-bit, but later arithmetics require 9 bits. + # v16 (d) is signed 7-bit, but later arithmetic require 9 bits. vsra.vi v16, v16, 3 # d vmv.v.x v20, t2 vmslt.vi v0, v16, 0 diff --git a/libavcodec/riscv/h26x/asm.S b/libavcodec/riscv/h26x/asm.S index 0c9ebbdaad..38c68e36ba 100644 --- a/libavcodec/riscv/h26x/asm.S +++ b/libavcodec/riscv/h26x/asm.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/h26x/h2656_inter_rvv.S b/libavcodec/riscv/h26x/h2656_inter_rvv.S index 9aba14ae2b..b7ee88fb20 100644 --- a/libavcodec/riscv/h26x/h2656_inter_rvv.S +++ b/libavcodec/riscv/h26x/h2656_inter_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/h26x/h2656dsp.h b/libavcodec/riscv/h26x/h2656dsp.h index 5ddfb99881..6d2ac55556 100644 --- a/libavcodec/riscv/h26x/h2656dsp.h +++ b/libavcodec/riscv/h26x/h2656dsp.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/hevcdsp_init.c b/libavcodec/riscv/hevcdsp_init.c index 1d8326a573..70bc8ebea7 100644 --- a/libavcodec/riscv/hevcdsp_init.c +++ b/libavcodec/riscv/hevcdsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/me_cmp_init.c b/libavcodec/riscv/me_cmp_init.c index f22dbff7f4..dac1366332 100644 --- a/libavcodec/riscv/me_cmp_init.c +++ b/libavcodec/riscv/me_cmp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/me_cmp_rvv.S b/libavcodec/riscv/me_cmp_rvv.S index 8989c91dde..0b7a49bb0c 100644 --- a/libavcodec/riscv/me_cmp_rvv.S +++ b/libavcodec/riscv/me_cmp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/rv34dsp_init.c b/libavcodec/riscv/rv34dsp_init.c index 051dc75653..a8437f0705 100644 --- a/libavcodec/riscv/rv34dsp_init.c +++ b/libavcodec/riscv/rv34dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/rv34dsp_rvv.S b/libavcodec/riscv/rv34dsp_rvv.S index fc0ffec4fe..69b9306946 100644 --- a/libavcodec/riscv/rv34dsp_rvv.S +++ b/libavcodec/riscv/rv34dsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/rv40dsp_init.c b/libavcodec/riscv/rv40dsp_init.c index 6aba571794..65790fa59c 100644 --- a/libavcodec/riscv/rv40dsp_init.c +++ b/libavcodec/riscv/rv40dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/rv40dsp_rvv.S b/libavcodec/riscv/rv40dsp_rvv.S index d4beb7f1e9..7f80f28349 100644 --- a/libavcodec/riscv/rv40dsp_rvv.S +++ b/libavcodec/riscv/rv40dsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/svqenc_init.c b/libavcodec/riscv/svqenc_init.c index 5021849e4c..b2eacb6b44 100644 --- a/libavcodec/riscv/svqenc_init.c +++ b/libavcodec/riscv/svqenc_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/svqenc_rvv.S b/libavcodec/riscv/svqenc_rvv.S index d37c319db7..b04998a576 100644 --- a/libavcodec/riscv/svqenc_rvv.S +++ b/libavcodec/riscv/svqenc_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/takdsp_init.c b/libavcodec/riscv/takdsp_init.c index 12d2d8dab9..be3dd97d48 100644 --- a/libavcodec/riscv/takdsp_init.c +++ b/libavcodec/riscv/takdsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/takdsp_rvv.S b/libavcodec/riscv/takdsp_rvv.S index a914ab8189..c0952ab167 100644 --- a/libavcodec/riscv/takdsp_rvv.S +++ b/libavcodec/riscv/takdsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * Copyright (c) 2023 Rémi Denis-Courmont * * This file is part of FFmpeg. diff --git a/libavcodec/riscv/vc1dsp_init.c b/libavcodec/riscv/vc1dsp_init.c index de9002f395..d70dd7931f 100644 --- a/libavcodec/riscv/vc1dsp_init.c +++ b/libavcodec/riscv/vc1dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vc1dsp_rvi.S b/libavcodec/riscv/vc1dsp_rvi.S index 7725bfb628..261a2382a7 100644 --- a/libavcodec/riscv/vc1dsp_rvi.S +++ b/libavcodec/riscv/vc1dsp_rvi.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vc1dsp_rvv.S b/libavcodec/riscv/vc1dsp_rvv.S index f9b59688ae..e54167c34f 100644 --- a/libavcodec/riscv/vc1dsp_rvv.S +++ b/libavcodec/riscv/vc1dsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * Copyright (c) 2024 Rémi Denis-Courmont. * * This file is part of FFmpeg. diff --git a/libavcodec/riscv/vp8dsp_init.c b/libavcodec/riscv/vp8dsp_init.c index 7ee17f331a..3e35c72198 100644 --- a/libavcodec/riscv/vp8dsp_init.c +++ b/libavcodec/riscv/vp8dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp8dsp_rvi.S b/libavcodec/riscv/vp8dsp_rvi.S index 07d5c85032..fa98438563 100644 --- a/libavcodec/riscv/vp8dsp_rvi.S +++ b/libavcodec/riscv/vp8dsp_rvi.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp8dsp_rvv.S b/libavcodec/riscv/vp8dsp_rvv.S index 60c72f1b54..2ee7029c60 100644 --- a/libavcodec/riscv/vp8dsp_rvv.S +++ b/libavcodec/riscv/vp8dsp_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * Copyright © 2024 Rémi Denis-Courmont. * * This file is part of FFmpeg. diff --git a/libavcodec/riscv/vp9_intra_rvv.S b/libavcodec/riscv/vp9_intra_rvv.S index 13d695c831..89e984c636 100644 --- a/libavcodec/riscv/vp9_intra_rvv.S +++ b/libavcodec/riscv/vp9_intra_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp9_mc_rvi.S b/libavcodec/riscv/vp9_mc_rvi.S index 4a8371b232..764ac1771c 100644 --- a/libavcodec/riscv/vp9_mc_rvi.S +++ b/libavcodec/riscv/vp9_mc_rvi.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp9_mc_rvv.S b/libavcodec/riscv/vp9_mc_rvv.S index d1ddbe007b..422ec90332 100644 --- a/libavcodec/riscv/vp9_mc_rvv.S +++ b/libavcodec/riscv/vp9_mc_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp9dsp.h b/libavcodec/riscv/vp9dsp.h index 601939882b..2422cd83e2 100644 --- a/libavcodec/riscv/vp9dsp.h +++ b/libavcodec/riscv/vp9dsp.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vp9dsp_init.c b/libavcodec/riscv/vp9dsp_init.c index d53852f673..67c227cf3d 100644 --- a/libavcodec/riscv/vp9dsp_init.c +++ b/libavcodec/riscv/vp9dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vvc/dsp_init.c b/libavcodec/riscv/vvc/dsp_init.c index 1b228cc9f5..d7a89f4779 100644 --- a/libavcodec/riscv/vvc/dsp_init.c +++ b/libavcodec/riscv/vvc/dsp_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vvc/mc_rvv.S b/libavcodec/riscv/vvc/mc_rvv.S index 329fc0648c..e6b2aadafe 100644 --- a/libavcodec/riscv/vvc/mc_rvv.S +++ b/libavcodec/riscv/vvc/mc_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/riscv/vvc/sad_rvv.S b/libavcodec/riscv/vvc/sad_rvv.S index bb613cc340..d906de232b 100644 --- a/libavcodec/riscv/vvc/sad_rvv.S +++ b/libavcodec/riscv/vvc/sad_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavcodec/rpzaenc.c b/libavcodec/rpzaenc.c index b43c213ec8..32e06c991f 100644 --- a/libavcodec/rpzaenc.c +++ b/libavcodec/rpzaenc.c @@ -619,7 +619,7 @@ static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) if (compare_blocks(&prev_pixels[pblock_offset], &src_pixels[block_offset], &bi, s->skip_frame_thresh) != 0) { - // write out skipable blocks + // write out skippable blocks if (n_blocks) { // write skip opcode diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 1db2429a3f..238b78539b 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -787,7 +787,7 @@ static int get_block_rd(SnowEncContext *enc, int mb_x, int mb_y, int y1= FFMIN(block_h*2, h-sy); int i,x,y; - av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc and square assumtions below chckinhg only block_w + av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc and square assumptions below chckinhg only block_w ff_snow_pred_block(s, cur, tmp, ref_stride, sx, sy, block_w*2, block_h*2, &s->block[mb_x + mb_y*b_stride], plane_index, w, h); @@ -884,7 +884,7 @@ static int get_4block_rd(SnowEncContext *enc, int mb_x, int mb_y, int plane_inde int rate= 0; const int penalty_factor= get_penalty_factor(enc->lambda, enc->lambda2, s->avctx->me_cmp); - av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc and square assumtions below + av_assert2(s->chroma_h_shift == s->chroma_v_shift); //obmc and square assumptions below for(i=0; i<9; i++){ int mb_x2= mb_x + (i%3) - 1; @@ -2108,7 +2108,7 @@ static const AVOption options[] = { { "iter", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = FF_ME_ITER }, 0, 0, VE, .unit = "motion_est" }, { "memc_only", "Only do ME/MC (I frames -> ref, P frame -> ME+MC).", OFFSET(memc_only), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { "no_bitstream", "Skip final bitstream writeout.", OFFSET(no_bitstream), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, - { "intra_penalty", "Penalty for intra blocks in block decission", OFFSET(intra_penalty), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE }, + { "intra_penalty", "Penalty for intra blocks in block decision", OFFSET(intra_penalty), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE }, { "iterative_dia_size", "Dia size for the iterative ME", OFFSET(iterative_dia_size), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, VE }, { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, { "pred", "Spatial decomposition type", OFFSET(pred), AV_OPT_TYPE_INT, { .i64 = 0 }, DWT_97, DWT_53, VE, .unit = "pred" }, diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c index ba9faeb15d..6caf0d96ad 100644 --- a/libavcodec/speexdec.c +++ b/libavcodec/speexdec.c @@ -1299,7 +1299,7 @@ static int sb_decode(AVCodecContext *avctx, void *ptr_st, lsp_interpolate(st->old_qlsp, qlsp, interp_qlsp, st->lpc_size, sub, st->nb_subframes, 0.05f); lsp_to_lpc(interp_qlsp, ak, st->lpc_size); - /* Calculate reponse ratio between the low and high filter in the middle + /* Calculate response ratio between the low and high filter in the middle of the band (4000 Hz) */ st->pi_gain[sub] = 1.f; rh = 1.f; diff --git a/libavcodec/tests/apv.c b/libavcodec/tests/apv.c index 018674afe7..365a395af1 100644 --- a/libavcodec/tests/apv.c +++ b/libavcodec/tests/apv.c @@ -285,7 +285,7 @@ static int random_coeff(AVLFG *lfg) static int random_run(AVLFG *lfg) { - // Expoenential distrbution of run lengths. + // Expoenential distribution of run lengths. unsigned int random = av_lfg_get(lfg); for (int len = 0;; len++) { if (random & (1 << len)) diff --git a/libavcodec/tests/avpacket.c b/libavcodec/tests/avpacket.c index fed700b4be..1d4833839a 100644 --- a/libavcodec/tests/avpacket.c +++ b/libavcodec/tests/avpacket.c @@ -87,7 +87,7 @@ int main(void) /* test av_packet_alloc */ avpkt = av_packet_alloc(); if(!avpkt) { - av_log(NULL, AV_LOG_ERROR, "av_packet_alloc failed to allcoate AVPacket\n"); + av_log(NULL, AV_LOG_ERROR, "av_packet_alloc failed to allocate AVPacket\n"); return 1; } diff --git a/libavcodec/tests/jpeg2000dwt.c b/libavcodec/tests/jpeg2000dwt.c index f9adb60564..a6ba190a54 100644 --- a/libavcodec/tests/jpeg2000dwt.c +++ b/libavcodec/tests/jpeg2000dwt.c @@ -58,7 +58,7 @@ static int test_dwt(int *array, int *ref, int border[2][2], int decomp_levels, i } for (j = 0; j max_diff) { - fprintf(stderr, "missmatch at %d (%d != %d) decomp:%d border %d %d %d %d\n", + fprintf(stderr, "mismatch at %d (%d != %d) decomp:%d border %d %d %d %d\n", j, array[j], ref[j],decomp_levels, border[0][0], border[0][1], border[1][0], border[1][1]); return 2; } @@ -97,7 +97,7 @@ static int test_dwtf(float *array, float *ref, int border[2][2], int decomp_leve } for (j = 0; j max_diff) { - fprintf(stderr, "missmatch at %d (%f != %f) decomp:%d border %d %d %d %d\n", + fprintf(stderr, "mismatch at %d (%f != %f) decomp:%d border %d %d %d %d\n", j, array[j], ref[j],decomp_levels, border[0][0], border[0][1], border[1][0], border[1][1]); return 2; } diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f2686b6863..cfa35d0e04 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -336,7 +336,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, // H.264 uses edge emulation for out of frame motion vectors, for this // it requires a temporary area large enough to hold a 21x21 block, - // increasing witdth ensure that the temporary area is large enough, + // increasing width ensure that the temporary area is large enough, // the next rounded up width is 32 *width = FFMAX(*width, 32); } diff --git a/libavcodec/v4l2_context.h b/libavcodec/v4l2_context.h index 6f7460c89a..fdd5cf5284 100644 --- a/libavcodec/v4l2_context.h +++ b/libavcodec/v4l2_context.h @@ -124,7 +124,7 @@ int ff_v4l2_context_get_format(V4L2Context* ctx, int probe); * Releases a V4L2Context. * * @param[in] ctx A pointer to a V4L2Context. - * The caller is reponsible for freeing it. + * The caller is responsible for freeing it. * It must not be used after calling this function. */ void ff_v4l2_context_release(V4L2Context* ctx); diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index aa2d759e1e..ba1fe769e0 100644 --- a/libavcodec/v4l2_m2m_dec.c +++ b/libavcodec/v4l2_m2m_dec.c @@ -164,7 +164,7 @@ static int v4l2_receive_frame(AVCodecContext *avctx, AVFrame *frame) if (!s->draining) { ret = v4l2_try_start(avctx); if (ret) { - /* cant recover */ + /* can't recover */ if (ret != AVERROR(ENOMEM)) ret = 0; goto fail; diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c index 5770e87ea1..93703ccc63 100644 --- a/libavcodec/v4l2_m2m_enc.c +++ b/libavcodec/v4l2_m2m_enc.c @@ -187,7 +187,7 @@ static int v4l2_prepare_encoder(V4L2m2mContext *s) return ret; /** - * settingss + * settings */ if (avctx->framerate.num || avctx->framerate.den) v4l2_set_timeperframe(s, avctx->framerate.den, avctx->framerate.num); diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 2acde2296b..1539bfbf79 100644 --- a/libavcodec/vaapi_encode_h265.c +++ b/libavcodec/vaapi_encode_h265.c @@ -526,7 +526,7 @@ static int vaapi_encode_h265_init_picture_params(AVCodecContext *avctx, priv->sei_needed = 0; // Only look for the metadata on I/IDR frame on the output. We - // may force an IDR frame on the output where the medadata gets + // may force an IDR frame on the output where the metadata gets // changed on the input frame. if ((priv->sei & SEI_MASTERING_DISPLAY) && (pic->type == FF_HW_PICTURE_TYPE_I || pic->type == FF_HW_PICTURE_TYPE_IDR)) { diff --git a/libavcodec/vbndec.c b/libavcodec/vbndec.c index a96843f212..b8acbce479 100644 --- a/libavcodec/vbndec.c +++ b/libavcodec/vbndec.c @@ -142,7 +142,7 @@ static int vbn_decode_frame(AVCodecContext *avctx, return image_len; if (image_len < linesize * avctx->coded_height) { - av_log(avctx, AV_LOG_ERROR, "Insufficent data\n"); + av_log(avctx, AV_LOG_ERROR, "Insufficient data\n"); ret = AVERROR_INVALIDDATA; goto out; } diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index b0588f6b58..2c155c01a1 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -621,7 +621,7 @@ static int count_hq_slice(SliceArgs *slice, int quant_idx) return bits; } -/* Approaches the best possible quantizer asymptotically, its kinda exaustive +/* Approaches the best possible quantizer asymptotically, its kinda exhaustive * but we have a LUT to get the coefficient size in bits. Guaranteed to never * overshoot, which is apparently very important when streaming */ static int rate_control(AVCodecContext *avctx, void *arg) diff --git a/libavcodec/vlc.c b/libavcodec/vlc.c index 3aa198a277..260b2052be 100644 --- a/libavcodec/vlc.c +++ b/libavcodec/vlc.c @@ -491,7 +491,7 @@ static int vlc_multi_gen(VLC_MULTI_ELEM *table, const VLC *single, // We can only add a code that fits with the shortest other code into the table // We assume the table is sorted by bits and we skip subtables which from our // point of view are basically random corrupted entries - // If we have not a single useable vlc we end with max = nb_codes + // If we have not a single usable vlc we end with max = nb_codes if (buf[max - 1].bits+minbits > numbits) break; } diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index adbd726183..60a83f394f 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -375,13 +375,13 @@ static int vorbis_parse_setup_hdr_codebooks(vorbis_context *vc) } ff_dlog(NULL, " We expect %d numbers for building the codevectors. \n", codebook_lookup_values); - ff_dlog(NULL, " delta %f minmum %f \n", + ff_dlog(NULL, " delta %f minimum %f \n", codebook_delta_value, codebook_minimum_value); for (i = 0; i < codebook_lookup_values; ++i) { codebook_multiplicands[i] = get_bits(gb, codebook_value_bits); - ff_dlog(NULL, " multiplicands*delta+minmum : %e \n", + ff_dlog(NULL, " multiplicands*delta+minimum : %e \n", (float)codebook_multiplicands[i] * codebook_delta_value + codebook_minimum_value); ff_dlog(NULL, " multiplicand %u\n", codebook_multiplicands[i]); } diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 3089499a0f..8f18cdf4c6 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2713,7 +2713,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, AVFrame *frame, mb_height_mul = get_bits(&gb, 5); mb_height_div = get_bits(&gb, 3); if (mb_width_mul != 1 || mb_width_div != 1 || mb_height_mul != 1 || mb_height_div != 1) - avpriv_request_sample(s->avctx, "unexpected macroblock dimension multipler/divider"); + avpriv_request_sample(s->avctx, "unexpected macroblock dimension multiplier/divider"); if (get_bits(&gb, 2)) avpriv_request_sample(s->avctx, "unknown bits"); diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index ed346ab2ed..0ae50b1d7d 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -733,7 +733,7 @@ static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_si int height = s->avctx->height; if (buf_size < 3) { - av_log(s->avctx, AV_LOG_ERROR, "Insufficent data (%d) for header\n", buf_size); + av_log(s->avctx, AV_LOG_ERROR, "Insufficient data (%d) for header\n", buf_size); return AVERROR_INVALIDDATA; } @@ -2416,7 +2416,7 @@ static av_always_inline int decode_mb_row_no_filter(AVCodecContext *avctx, void mb = s->macroblocks_base + ((s->mb_width + 1) * (mb_y + 1) + 1); else { // Make sure the previous frame has read its segmentation map, - // if we re-use the same map. + // if we reuse the same map. if (prev_frame && s->segmentation.enabled && !s->segmentation.update_map) ff_progress_frame_await(&prev_frame->tf, mb_y); @@ -2761,7 +2761,7 @@ int vp78_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, if (s->mb_layout == 1) { // Make sure the previous frame has read its segmentation map, - // if we re-use the same map. + // if we reuse the same map. if (prev_frame && s->segmentation.enabled && !s->segmentation.update_map) ff_progress_frame_await(&prev_frame->tf, 1); diff --git a/libavcodec/vulkan/rangecoder.comp b/libavcodec/vulkan/rangecoder.comp index 8687b8bc3c..b6b6c0490f 100644 --- a/libavcodec/vulkan/rangecoder.comp +++ b/libavcodec/vulkan/rangecoder.comp @@ -189,7 +189,7 @@ void rac_init_dec(out RangeCoder r, u8buf data, uint buf_size) rac_init(r, OFFBUF(u8buf, data, 2), buf_size - 2); u8vec2 prime = u8vec2buf(data).v; - /* Switch endianess of the priming bytes */ + /* Switch endianness of the priming bytes */ r.low = pack16(prime.yx); if (r.low >= 0xFF00) { diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index 7310ba1547..e87aa94248 100644 --- a/libavcodec/vulkan_decode.c +++ b/libavcodec/vulkan_decode.c @@ -1327,7 +1327,7 @@ int ff_vk_decode_init(AVCodecContext *avctx) ff_vk_decode_flush(avctx); - av_log(avctx, AV_LOG_VERBOSE, "Vulkan decoder initialization sucessful\n"); + av_log(avctx, AV_LOG_VERBOSE, "Vulkan decoder initialization successful\n"); return 0; diff --git a/libavcodec/vulkan_encode_h265.c b/libavcodec/vulkan_encode_h265.c index d81d2de95a..c363778920 100644 --- a/libavcodec/vulkan_encode_h265.c +++ b/libavcodec/vulkan_encode_h265.c @@ -207,7 +207,7 @@ static int vk_enc_h265_update_pic_info(AVCodecContext *avctx, } // Only look for the metadata on I/IDR frame on the output. We - // may force an IDR frame on the output where the medadata gets + // may force an IDR frame on the output where the metadata gets // changed on the input frame. if ((enc->unit_elems & UNIT_SEI_MASTERING_DISPLAY) && (pic->type == FF_HW_PICTURE_TYPE_I || pic->type == FF_HW_PICTURE_TYPE_IDR)) { diff --git a/libavcodec/vvc/intra_utils.c b/libavcodec/vvc/intra_utils.c index 7229222b95..e44c3dcd04 100644 --- a/libavcodec/vvc/intra_utils.c +++ b/libavcodec/vvc/intra_utils.c @@ -193,7 +193,7 @@ int ff_vvc_intra_inv_angle_derive(const int intra_pred_angle) return -ROUNDED_DIV(32*512, -intra_pred_angle); } -//8.4.5.2.7 Wide angle intra prediction mode mapping proces +//8.4.5.2.7 Wide angle intra prediction mode mapping process int ff_vvc_wide_angle_mode_mapping(const CodingUnit *cu, const int tb_width, const int tb_height, const int c_idx, int pred_mode_intra) { diff --git a/libavcodec/vvc/mvs.c b/libavcodec/vvc/mvs.c index 2cf67def7b..955fe4b9fd 100644 --- a/libavcodec/vvc/mvs.c +++ b/libavcodec/vvc/mvs.c @@ -926,7 +926,7 @@ static void affine_cps_from_nb(const VVCLocalContext *lc, } } -//derive affine neighbour's postion, width and height, +//derive affine neighbour's position, width and height, static int affine_neighbour_cb(const VVCFrameContext *fc, const int x_nb, const int y_nb, int *x_cb, int *y_cb, int *cbw, int *cbh) { const int log2_min_cb_size = fc->ps.sps->min_cb_log2_size_y; diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c index c9c3a3949f..0c7362dde4 100644 --- a/libavcodec/vvc_parser.c +++ b/libavcodec/vvc_parser.c @@ -300,14 +300,14 @@ static int get_pu_info(PuInfo *info, const CodedBitstreamH266Context *h266, } info->pps = h266->pps[info->ph->ph_pic_parameter_set_id]; if (!info->pps) { - av_log(logctx, AV_LOG_ERROR, "PPS id %d is not avaliable.\n", + av_log(logctx, AV_LOG_ERROR, "PPS id %d is not available.\n", info->ph->ph_pic_parameter_set_id); ret = AVERROR_INVALIDDATA; goto error; } info->sps = h266->sps[info->pps->pps_seq_parameter_set_id]; if (!info->sps) { - av_log(logctx, AV_LOG_ERROR, "SPS id %d is not avaliable.\n", + av_log(logctx, AV_LOG_ERROR, "SPS id %d is not available.\n", info->pps->pps_seq_parameter_set_id); ret = AVERROR_INVALIDDATA; goto error; diff --git a/libavcodec/x86/celt_pvq_search.asm b/libavcodec/x86/celt_pvq_search.asm index 3c6974d370..3e21b7df81 100644 --- a/libavcodec/x86/celt_pvq_search.asm +++ b/libavcodec/x86/celt_pvq_search.asm @@ -104,7 +104,7 @@ align 16 addps m5, m7 ; m5 = Sxy_new = X[i] + Sxy_norm %if USE_APPROXIMATION == 1 - andps m5, m0 ; if(X[i] == 0) Sxy_new = 0; Prevent aproximation error from setting pulses in array padding. + andps m5, m0 ; if(X[i] == 0) Sxy_new = 0; Prevent approximation error from setting pulses in array padding. %endif %else diff --git a/libavcodec/x86/dirac_dwt.asm b/libavcodec/x86/dirac_dwt.asm index 1f3b238aee..46fb6b2dcf 100644 --- a/libavcodec/x86/dirac_dwt.asm +++ b/libavcodec/x86/dirac_dwt.asm @@ -1,5 +1,5 @@ ;****************************************************************************** -;* x86 optimized discrete wavelet trasnform +;* x86 optimized discrete wavelet transform ;* Copyright (c) 2010 David Conrad ;* ;* This file is part of FFmpeg. diff --git a/libavcodec/x86/hevc/idct.asm b/libavcodec/x86/hevc/idct.asm index e7967766e9..021e5dab14 100644 --- a/libavcodec/x86/hevc/idct.asm +++ b/libavcodec/x86/hevc/idct.asm @@ -532,7 +532,7 @@ cglobal hevc_idct_8x8_%1, 1, 1, 8, coeffs ; %1, %2 - transform constants ; %3, %4 - regs with interleaved coeffs ; %5 - 1/0 SWAP or add -; %6, %7 - registers for intermidiate sums +; %6, %7 - registers for intermediate sums ; %8 - accumulator register %macro ADD_ROWS 8 pmaddwd %6, %3, %1 diff --git a/libavcodec/x86/vp9itxfm_16bpp_avx512.asm b/libavcodec/x86/vp9itxfm_16bpp_avx512.asm index 11d1e453a7..1924233469 100644 --- a/libavcodec/x86/vp9itxfm_16bpp_avx512.asm +++ b/libavcodec/x86/vp9itxfm_16bpp_avx512.asm @@ -26,7 +26,7 @@ SECTION_RODATA 64 -; Thw following set of constants are ordered to form the +; The following set of constants are ordered to form the ; qword shuffle mask { 0, 2, 4, 6, 1, 3, 5, 7 } %define deintq_perm pd_5520 pd_5520: dd 5520 diff --git a/libavdevice/audiotoolbox.m b/libavdevice/audiotoolbox.m index 7d95c34593..32ab151851 100644 --- a/libavdevice/audiotoolbox.m +++ b/libavdevice/audiotoolbox.m @@ -247,7 +247,7 @@ static int at_write_packet(AVFormatContext *avctx, AVPacket *pkt) // will be unlocked by queue callback pthread_mutex_lock(&ctx->buffer_lock[ctx->cur_buf]); - // (re-)allocate the buffer if not existant or of different size + // (re-)allocate the buffer if not existent or of different size if (!ctx->buffer[ctx->cur_buf] || ctx->buffer[ctx->cur_buf]->mAudioDataBytesCapacity != pkt->size) { err = AudioQueueAllocateBuffer(ctx->queue, pkt->size, &ctx->buffer[ctx->cur_buf]); if (check_status(avctx, &err, "AudioQueueAllocateBuffer")) { diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h index 887fd5e3c8..10ffaf4c5f 100644 --- a/libavdevice/avdevice.h +++ b/libavdevice/avdevice.h @@ -372,7 +372,7 @@ void avdevice_free_list_devices(AVDeviceInfoList **device_list); * List devices. * * Returns available device names and their parameters. - * These are convinient wrappers for avdevice_list_devices(). + * These are convenient wrappers for avdevice_list_devices(). * Device context is allocated and deallocated internally. * * @param device device format. May be NULL if device name is set. diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index c736ec0cbc..d0b2c6e0b5 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -830,7 +830,7 @@ static av_cold int xcbgrab_read_header(AVFormatContext *s) *display_name = 0; if(sscanf(s->url, "+%d,%d", &c->x, &c->y) != 2) { if (*s->url) - av_log(s, AV_LOG_WARNING, "Ambigous URL: %s\n", s->url); + av_log(s, AV_LOG_WARNING, "Ambiguous URL: %s\n", s->url); } } diff --git a/libavfilter/aarch64/vf_bwdif_neon.S b/libavfilter/aarch64/vf_bwdif_neon.S index bf268b12f8..d078f6f6f1 100644 --- a/libavfilter/aarch64/vf_bwdif_neon.S +++ b/libavfilter/aarch64/vf_bwdif_neon.S @@ -148,7 +148,7 @@ // static const uint16_t coef_hf[3] = { 5570, 3801, 1016 }; // static const uint16_t coef_sp[2] = { 5077, 981 }; -const coeffs, align=4 // align 4 means align on 2^4 boundry +const coeffs, align=4 // align 4 means align on 2^4 boundary .hword 4309 * 4, 213 * 4 // lf[0]*4 = v0.h[0] .hword 5570, 3801, 1016, -3801 // hf[0] = v0.h[2], -hf[1] = v0.h[5] .hword 5077, 981 // sp[0] = v0.h[6] diff --git a/libavfilter/af_astats.c b/libavfilter/af_astats.c index aa2028d3f0..e5be00ec0b 100644 --- a/libavfilter/af_astats.c +++ b/libavfilter/af_astats.c @@ -836,7 +836,7 @@ static void print_stats(AVFilterContext *ctx) av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(p->max_sigma_x2))); if (s->measure_perchannel & MEASURE_RMS_TROUGH) if (p->min_sigma_x2 != 1) - av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2))); + av_log(ctx, AV_LOG_INFO, "RMS through dB: %f\n",LINEAR_TO_DB(sqrt(p->min_sigma_x2))); if (s->measure_perchannel & MEASURE_CREST_FACTOR) av_log(ctx, AV_LOG_INFO, "Crest factor: %f\n", p->sigma_x2 ? FFMAX(-p->nmin, p->nmax) / sqrt(p->sigma_x2 / p->nb_samples) : 1); if (s->measure_perchannel & MEASURE_FLAT_FACTOR) @@ -896,7 +896,7 @@ static void print_stats(AVFilterContext *ctx) av_log(ctx, AV_LOG_INFO, "RMS peak dB: %f\n", LINEAR_TO_DB(sqrt(max_sigma_x2))); if (s->measure_overall & MEASURE_RMS_TROUGH) if (min_sigma_x2 != 1) - av_log(ctx, AV_LOG_INFO, "RMS trough dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2))); + av_log(ctx, AV_LOG_INFO, "RMS through dB: %f\n", LINEAR_TO_DB(sqrt(min_sigma_x2))); if (s->measure_overall & MEASURE_FLAT_FACTOR) av_log(ctx, AV_LOG_INFO, "Flat factor: %f\n", LINEAR_TO_DB((min_runs + max_runs) / (min_count + max_count))); if (s->measure_overall & MEASURE_PEAK_COUNT) diff --git a/libavfilter/af_atempo.c b/libavfilter/af_atempo.c index 62a8e11b78..768840d99c 100644 --- a/libavfilter/af_atempo.c +++ b/libavfilter/af_atempo.c @@ -112,7 +112,7 @@ typedef struct ATempoContext { // number of channels: int channels; - // row of bytes to skip from one sample to next, across multple channels; + // row of bytes to skip from one sample to next, across multiple channels; // stride = (number-of-channels * bits-per-sample-per-channel) / 8 int stride; diff --git a/libavfilter/af_drmeter.c b/libavfilter/af_drmeter.c index 6feb9a3e95..7eae49c0b9 100644 --- a/libavfilter/af_drmeter.c +++ b/libavfilter/af_drmeter.c @@ -138,7 +138,7 @@ static void print_stats(AVFilterContext *ctx) int peak_bin = BINS; if (!p->nb_samples) { - av_log(ctx, AV_LOG_INFO, "No data, dynamic range not meassurable\n"); + av_log(ctx, AV_LOG_INFO, "No data, dynamic range not measurable\n"); return; } diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c index 3071c85bd2..c1b9563566 100644 --- a/libavfilter/af_sofalizer.c +++ b/libavfilter/af_sofalizer.c @@ -734,7 +734,7 @@ static int load_data(AVFilterContext *ctx, int azim, int elev, float radius, int AVComplexFloat *fft_in_r = NULL; float *data_ir_l = NULL; float *data_ir_r = NULL; - int offset = 0; /* used for faster pointer arithmetics in for-loop */ + int offset = 0; /* used for faster pointer arithmetic in for-loop */ int i, j, azim_orig = azim, elev_orig = elev; int ret = 0; int n_current; @@ -954,7 +954,7 @@ fail: av_freep(&data_hrtf_l); /* free temporary HRTF memory */ av_freep(&data_hrtf_r); - av_freep(&data_ir_l); /* free temprary IR memory */ + av_freep(&data_ir_l); /* free temporary IR memory */ av_freep(&data_ir_r); av_freep(&fft_out_l); /* free temporary FFT memory */ diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 5050f46e25..f6a867a0ce 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -619,7 +619,7 @@ static int render_fontconfig(ShowCQTContext *s, AVFrame *tmp, char* font) FcDefaultSubstitute(pat); if (!FcConfigSubstitute(fontconfig, pat, FcMatchPattern)) { - av_log(s->ctx, AV_LOG_ERROR, "could not substitue fontconfig options.\n"); + av_log(s->ctx, AV_LOG_ERROR, "could not substitute fontconfig options.\n"); FcPatternDestroy(pat); FcConfigDestroy(fontconfig); return AVERROR(ENOMEM); diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index d2571b1404..a92144b0a6 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -898,7 +898,7 @@ typedef struct AVFilterParams { char *instance_name; /** - * Options to be apllied to the filter. + * Options to be applied to the filter. * * Filled by avfilter_graph_segment_parse(). Afterwards may be freely * modified by the caller. @@ -1081,7 +1081,7 @@ int avfilter_graph_segment_init(AVFilterGraphSegment *seg, int flags); * Unlabeled outputs are * - linked to the first unlinked unlabeled input in the next non-disabled * filter in the chain, if one exists - * - exported in the ouputs linked list otherwise, with NULL label + * - exported in the outputs linked list otherwise, with NULL label * * Similarly, unlinked input pads are exported in the inputs linked list. * diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index 2f6706dcd4..ec46e29b8a 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/libavfilter/dnn/dnn_backend_openvino.c @@ -1331,7 +1331,7 @@ static int get_output_ov(DNNModel *model, const char *input_name, int input_widt #endif ret = init_model_ov(ov_model, input_name, output_name ? &output_name : NULL, 1); if (ret != 0) { - av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO exectuable network or inference request\n"); + av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO executable network or inference request\n"); return ret; } } @@ -1487,7 +1487,7 @@ static int dnn_execute_model_ov(const DNNModel *model, DNNExecBaseParams *exec_p ret = init_model_ov(ov_model, exec_params->input_name, exec_params->output_names, exec_params->nb_output); if (ret != 0) { - av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO exectuable network or inference request\n"); + av_log(ctx, AV_LOG_ERROR, "Failed init OpenVINO executable network or inference request\n"); return ret; } } diff --git a/libavfilter/filters.h b/libavfilter/filters.h index 11152cfabf..bc79527b87 100644 --- a/libavfilter/filters.h +++ b/libavfilter/filters.h @@ -508,7 +508,7 @@ int ff_inlink_check_available_frame(AVFilterLink *link); /*** * Get the number of samples available on the link. - * @return the numer of samples available on the link. + * @return the number of samples available on the link. */ int ff_inlink_queued_samples(AVFilterLink *link); diff --git a/libavfilter/framepool.h b/libavfilter/framepool.h index daab88e4a5..2bef1fe0b6 100644 --- a/libavfilter/framepool.h +++ b/libavfilter/framepool.h @@ -41,7 +41,7 @@ typedef struct FFFramePool FFFramePool; * @param width width of each frame in this pool * @param height height of each frame in this pool * @param format format of each frame in this pool - * @param align buffers alignement of each frame in this pool + * @param align buffers alignment of each frame in this pool * @return newly created video frame pool on success, NULL on error. */ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size), @@ -59,7 +59,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(size_t size), * @param channels channels of each frame in this pool * @param nb_samples number of samples of each frame in this pool * @param format format of each frame in this pool - * @param align buffers alignement of each frame in this pool + * @param align buffers alignment of each frame in this pool * @return newly created audio frame pool on success, NULL on error. */ FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(size_t size), @@ -82,7 +82,7 @@ void ff_frame_pool_uninit(FFFramePool **pool); * @param width width of each frame in this pool * @param height height of each frame in this pool * @param format format of each frame in this pool - * @param align buffers alignement of each frame in this pool + * @param align buffers alignment of each frame in this pool * @return 0 on success, a negative AVERROR otherwise. */ int ff_frame_pool_get_video_config(FFFramePool *pool, @@ -97,7 +97,7 @@ int ff_frame_pool_get_video_config(FFFramePool *pool, * @param channels channels of each frame in this pool * @param nb_samples number of samples of each frame in this pool * @param format format of each frame in this pool - * @param align buffers alignement of each frame in this pool + * @param align buffers alignment of each frame in this pool * @return 0 on success, a negative AVERROR otherwise. */ int ff_frame_pool_get_audio_config(FFFramePool *pool, @@ -108,7 +108,7 @@ int ff_frame_pool_get_audio_config(FFFramePool *pool, /** - * Allocate a new AVFrame, reussing old buffers from the pool when available. + * Allocate a new AVFrame, reusing old buffers from the pool when available. * This function may be called simultaneously from multiple threads. * * @return a new AVFrame on success, NULL on error. diff --git a/libavfilter/framesync.h b/libavfilter/framesync.h index 130d067bae..1e01ee687a 100644 --- a/libavfilter/framesync.h +++ b/libavfilter/framesync.h @@ -41,7 +41,7 @@ enum EOFAction { * complex logic and a few user-tunable options. * * In this API, when a set of synchronized input frames is ready to be - * procesed is called a frame event. Frame event can be generated in + * processed is called a frame event. Frame event can be generated in * response to input frames on any or all inputs and the handling of * situations where some stream extend beyond the beginning or the end of * others can be configured. @@ -76,9 +76,9 @@ enum FFFrameSyncExtMode { }; /** - * Timestamp syncronization mode + * Timestamp synchronization mode * - * Describe how the frames of a stream are syncronized based on timestamp + * Describe how the frames of a stream are synchronized based on timestamp * distance. */ enum FFFrameTSSyncMode { diff --git a/libavfilter/qsvvpp.h b/libavfilter/qsvvpp.h index 3b9192b62e..5cf4577270 100644 --- a/libavfilter/qsvvpp.h +++ b/libavfilter/qsvvpp.h @@ -65,7 +65,7 @@ typedef struct QSVVPPContext { mfxSession session; int (*filter_frame) (AVFilterLink *outlink, AVFrame *frame); /**< callback */ - int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callbak */ + int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callback */ enum AVPixelFormat out_sw_format; /**< Real output format */ mfxVideoParam vpp_param; mfxFrameInfo *frame_infos; /**< frame info for each input */ @@ -110,7 +110,7 @@ typedef struct QSVVPPCrop { typedef struct QSVVPPParam { /* default is ff_filter_frame */ int (*filter_frame)(AVFilterLink *outlink, AVFrame *frame); - int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callbak */ + int (*set_frame_ext_params)(AVFilterContext *ctx, const AVFrame *in, AVFrame *out, QSVVPPFrameParam *fp); /**< callback */ /* To fill with MFX enhanced filter configurations */ int num_ext_buf; diff --git a/libavfilter/riscv/af_afir_init.c b/libavfilter/riscv/af_afir_init.c index 66402f5c1b..87740f0189 100644 --- a/libavfilter/riscv/af_afir_init.c +++ b/libavfilter/riscv/af_afir_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavfilter/riscv/af_afir_rvv.S b/libavfilter/riscv/af_afir_rvv.S index 5ebd020e75..cef363a830 100644 --- a/libavfilter/riscv/af_afir_rvv.S +++ b/libavfilter/riscv/af_afir_rvv.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/libavfilter/vf_amf_common.c b/libavfilter/vf_amf_common.c index b132d217bd..ae095c6a6c 100644 --- a/libavfilter/vf_amf_common.c +++ b/libavfilter/vf_amf_common.c @@ -176,7 +176,7 @@ int amf_setup_input_output_formats(AVFilterContext *avctx, AVFilterFormats *input_formats; AVFilterFormats *output_formats; - //in case if hw_device_ctx is set to DXVA2 we change order of pixel formats to set DXVA2 be choosen by default + //in case if hw_device_ctx is set to DXVA2 we change order of pixel formats to set DXVA2 be chosen by default //The order is ignored if hw_frames_ctx is not NULL on the config_output stage if (avctx->hw_device_ctx) { AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; diff --git a/libavfilter/vf_bilateral_cuda.cu b/libavfilter/vf_bilateral_cuda.cu index 7d6cc14c0a..001bec5def 100644 --- a/libavfilter/vf_bilateral_cuda.cu +++ b/libavfilter/vf_bilateral_cuda.cu @@ -28,7 +28,7 @@ extern "C" * used float4 for better performance * * @param first_yuv first color vector - * @param second_yuv second color vecotr + * @param second_yuv second color vector * @return answer of squared norm difference */ __device__ static inline float norm_squared(float4 first_yuv, float4 second_yuv) @@ -43,7 +43,7 @@ __device__ static inline float norm_squared(float4 first_yuv, float4 second_yuv) * @brief calculate w as stated in bilateral filter research paper * * @param first_yuv first color vector - * @param second_yuv second color vecotr + * @param second_yuv second color vector * @return the calculated w */ __device__ static inline float calculate_w(int x, int y, int r, int c, diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c index 21f7dc5de3..3ae9d9c87c 100644 --- a/libavfilter/vf_ciescope.c +++ b/libavfilter/vf_ciescope.c @@ -1132,7 +1132,7 @@ fill_in_tongue(uint16_t* const pixels, /* Scan the image line by line and fill the tongue outline with the RGB values determined by the color system for the x-y - co-ordinates within the tongue. + coordinates within the tongue. */ for (y = 0; y < h; ++y) { diff --git a/libavfilter/vf_colorconstancy.c b/libavfilter/vf_colorconstancy.c index d5f8fd1098..7251cf3121 100644 --- a/libavfilter/vf_colorconstancy.c +++ b/libavfilter/vf_colorconstancy.c @@ -176,7 +176,7 @@ static int set_gauss(AVFilterContext *ctx) /** * Frees up buffers used by grey edge for storing derivatives final - * and intermidiate results. Number of buffers and number of planes + * and intermediate results. Number of buffers and number of planes * for last buffer are given so it can be safely called at allocation * failure instances. * @@ -201,7 +201,7 @@ static void cleanup_derivative_buffers(ThreadData *td, int nb_buff, int nb_plane /** * Allocates buffers used by grey edge for storing derivatives final - * and intermidiate results. + * and intermediate results. * * @param ctx the filter context. * @param td holds the buffers. @@ -236,12 +236,12 @@ static int setup_derivative_buffers(AVFilterContext* ctx, ThreadData *td) /** * Slice calculation of gaussian derivatives. Applies 1-D gaussian derivative filter * either horizontally or vertically according to meta data given in thread data. - * When convoluting horizontally source is always the in frame withing thread data + * When convoluting horizontally source is always the in frame within thread data * while when convoluting vertically source is a buffer. * * @param ctx the filter context. * @param arg data to be passed between threads. - * @param jobnr current job nubmer. + * @param jobnr current job number. * @param nb_jobs total number of jobs. * * @return 0. @@ -309,7 +309,7 @@ static int slice_get_derivative(AVFilterContext* ctx, void* arg, int jobnr, int * * @param ctx the filter context. * @param arg data to be passed between threads. - * @param jobnr current job nubmer. + * @param jobnr current job number. * @param nb_jobs total number of jobs. * * @return 0. @@ -430,7 +430,7 @@ static int get_derivative(AVFilterContext *ctx, ThreadData *td) * * @param ctx the filter context. * @param arg data to be passed between threads. - * @param jobnr current job nubmer. + * @param jobnr current job number. * @param nb_jobs total number of jobs. * * @return 0. @@ -479,7 +479,7 @@ static int filter_slice_grey_edge(AVFilterContext* ctx, void* arg, int jobnr, in * Main control function for grey edge algorithm. * * @param ctx the filter context. - * @param in frame to perfrom grey edge on. + * @param in frame to perform grey edge on. * * @return 0 in case of success, a negative value corresponding to an * AVERROR code in case of failure. @@ -558,7 +558,7 @@ static void normalize_light(double *light) * after estimation. * * @param ctx the filter context. - * @param in frame to perfrom estimation on. + * @param in frame to perform estimation on. * * @return 0 in case of success, a negative value corresponding to an * AVERROR code in case of failure. @@ -584,7 +584,7 @@ static int illumination_estimation(AVFilterContext *ctx, AVFrame *in) * * @param ctx the filter context. * @param arg data to be passed between threads. - * @param jobnr current job nubmer. + * @param jobnr current job number. * @param nb_jobs total number of jobs. * * @return 0. diff --git a/libavfilter/vf_convolution_opencl.c b/libavfilter/vf_convolution_opencl.c index 7193a2b0d9..c866022a12 100644 --- a/libavfilter/vf_convolution_opencl.c +++ b/libavfilter/vf_convolution_opencl.c @@ -352,7 +352,7 @@ static const AVOption convolution_opencl_options[] = { { "1m", "set matrix for 2nd plane", OFFSET(matrix_str[1]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS }, { "2m", "set matrix for 3rd plane", OFFSET(matrix_str[2]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS }, { "3m", "set matrix for 4th plane", OFFSET(matrix_str[3]), AV_OPT_TYPE_STRING, {.str="0 0 0 0 1 0 0 0 0"}, 0, 0, FLAGS }, - { "0rdiv", "set rdiv for 1nd plane", OFFSET(rdivs[0]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, + { "0rdiv", "set rdiv for 1st plane", OFFSET(rdivs[0]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, { "1rdiv", "set rdiv for 2nd plane", OFFSET(rdivs[1]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, { "2rdiv", "set rdiv for 3rd plane", OFFSET(rdivs[2]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, { "3rdiv", "set rdiv for 4th plane", OFFSET(rdivs[3]), AV_OPT_TYPE_FLOAT, {.dbl=1.0}, 0.0, INT_MAX, FLAGS}, diff --git a/libavfilter/vf_coreimage.m b/libavfilter/vf_coreimage.m index dfa8758ce9..5e043dc3e3 100644 --- a/libavfilter/vf_coreimage.m +++ b/libavfilter/vf_coreimage.m @@ -58,7 +58,7 @@ typedef struct CoreImageContext { CFTypeRef *filters; ///< CIFilter object for all requested filters int num_filters; ///< Amount of filters in *filters - char *output_rect; ///< Rectangle to be filled with filter intput + char *output_rect; ///< Rectangle to be filled with filter input int list_filters; ///< Option used to list all available filters including generators int list_generators; ///< Option used to list all available generators } CoreImageContext; diff --git a/libavfilter/vf_curves.c b/libavfilter/vf_curves.c index 8ff69807d9..d54e9ed1b9 100644 --- a/libavfilter/vf_curves.c +++ b/libavfilter/vf_curves.c @@ -493,7 +493,7 @@ static inline int interpolate_pchip(void *log_ctx, uint16_t *y, goto end; } - fi = xi + n; /* output values at inteval endpoints */ + fi = xi + n; /* output values at interval endpoints */ di = fi + n; /* output slope wrt normalized input at interval endpoints */ hi = di + n; /* interval widths */ mi = hi + n - 1; /* linear slope over intervals */ diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index bc9a1777ff..647259a141 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -81,7 +81,7 @@ static const AVOption dnn_detect_options[] = { { "cell_w", "cell width", OFFSET2(cell_w), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS }, { "cell_h", "cell height", OFFSET2(cell_h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS }, { "nb_classes", "The number of class", OFFSET2(nb_classes), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INTMAX_MAX, FLAGS }, - { "anchors", "anchors, splited by '&'", OFFSET2(anchors), AV_OPT_TYPE_FLOAT | AV_OPT_TYPE_FLAG_ARRAY, { .arr = &anchor_array_def }, FLT_MIN, FLT_MAX, FLAGS }, + { "anchors", "anchors, split by '&'", OFFSET2(anchors), AV_OPT_TYPE_FLOAT | AV_OPT_TYPE_FLAG_ARRAY, { .arr = &anchor_array_def }, FLT_MIN, FLT_MAX, FLAGS }, { NULL } }; diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index 18a0ead167..95f61df5ae 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -454,7 +454,7 @@ static const AVOption drawbox_options[] = { { "thickness", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS }, { "t", "set the box thickness", OFFSET(t_expr), AV_OPT_TYPE_STRING, { .str="3" }, 0, 0, FLAGS }, { "replace", "replace color & alpha", OFFSET(replace), AV_OPT_TYPE_BOOL, { .i64=0 }, 0, 1, FLAGS }, - { "box_source", "use datas from bounding box in side data", OFFSET(box_source_string), AV_OPT_TYPE_STRING, { .str=NULL }, 0, 1, FLAGS }, + { "box_source","use data from bounding box in side data", OFFSET(box_source_string), AV_OPT_TYPE_STRING, { .str=NULL }, 0, 1, FLAGS }, { NULL } }; diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 029076bf97..674e1e53c1 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -562,7 +562,7 @@ static int load_font_fontconfig(AVFilterContext *ctx) FcDefaultSubstitute(pat); if (!FcConfigSubstitute(fontconfig, pat, FcMatchPattern)) { - av_log(ctx, AV_LOG_ERROR, "could not substitue fontconfig options"); /* very unlikely */ + av_log(ctx, AV_LOG_ERROR, "could not substitute fontconfig options"); /* very unlikely */ FcPatternDestroy(pat); return AVERROR(ENOMEM); } @@ -866,7 +866,7 @@ static int func_pts(void *ctx, AVBPrint *bp, const char *function_name, unsigned if (argc >= 3) { if (!strcmp(fmt, "hms")) { if (!strcmp(argv[2], "24HH")) { - av_log(ctx, AV_LOG_WARNING, "pts third argument 24HH is deprected, use pts:hms24hh instead\n"); + av_log(ctx, AV_LOG_WARNING, "pts third argument 24HH is deprecated, use pts:hms24hh instead\n"); fmt = "hms24"; } else { av_log(ctx, AV_LOG_ERROR, "Invalid argument '%s', '24HH' was expected\n", argv[2]); diff --git a/libavfilter/vf_fspp.c b/libavfilter/vf_fspp.c index 8ff048aeb1..6b4a715367 100644 --- a/libavfilter/vf_fspp.c +++ b/libavfilter/vf_fspp.c @@ -463,7 +463,7 @@ static void row_fdct_c(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size tmp12 = tmp1 - tmp2; //Even columns are written first, this leads to different order of columns //in column_fidct(), but they are processed independently, so all ok. - //Later in the row_idct() columns readed at the same order. + //Later in the row_idct() columns are read in the same order. dataptr[2] = tmp10 + tmp11; dataptr[3] = tmp10 - tmp11; diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 347151acd3..67f5360cf4 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -1412,7 +1412,7 @@ static int libplacebo_config_output(AVFilterLink *outlink) s->vkctx.output_width = outlink->w; s->vkctx.output_height = outlink->h; - /* Default to re-using the input format */ + /* Default to reusing the input format */ if (s->out_format == AV_PIX_FMT_NONE || s->out_format == AV_PIX_FMT_VULKAN) { s->vkctx.output_format = s->vkctx.input_format; } else { diff --git a/libavfilter/vf_mpdecimate.c b/libavfilter/vf_mpdecimate.c index d4851c1540..0fc95556b7 100644 --- a/libavfilter/vf_mpdecimate.c +++ b/libavfilter/vf_mpdecimate.c @@ -208,7 +208,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *cur) av_frame_free(&decimate->ref); decimate->ref = cur; decimate->drop_count = FFMIN(-1, decimate->drop_count-1); - if (decimate->keep_count < 0) // re-enable counting similiar frames to ignore before dropping + if (decimate->keep_count < 0) // re-enable counting similar frames to ignore before dropping decimate->keep_count = 0; if ((ret = ff_filter_frame(outlink, av_frame_clone(cur))) < 0) diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 1e80622671..ce4a13e957 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -137,7 +137,7 @@ static int eval_expr(AVFilterContext *ctx) var_values[VAR_OVERLAY_X] = var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL); - /* calc overlay_w and overlay_h again incase relative to ox,oy */ + /* calc overlay_w and overlay_h again in case relative to ox,oy */ var_values[VAR_OVERLAY_W] = var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL); var_values[VAR_OVERLAY_H] = diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 2c1c6b8755..a771b60ff3 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter/vf_overlay_vaapi.c @@ -108,7 +108,7 @@ static int eval_expr(AVFilterContext *avctx) var_values[VAR_OVERLAY_X] = var_values[VAR_OX] = av_expr_eval(ox_expr, var_values, NULL); - /* calc overlay_w and overlay_h again incase relative to ox,oy */ + /* calc overlay_w and overlay_h again in case relative to ox,oy */ var_values[VAR_OVERLAY_W] = var_values[VAR_OW] = av_expr_eval(ow_expr, var_values, NULL); var_values[VAR_OVERLAY_H] = diff --git a/libavfilter/vf_removelogo.c b/libavfilter/vf_removelogo.c index 49259026ff..70e4eef0a0 100644 --- a/libavfilter/vf_removelogo.c +++ b/libavfilter/vf_removelogo.c @@ -49,7 +49,7 @@ * remove rough edges, is stored in each pixel. This is done using an in-place * erosion algorithm, and incrementing each pixel that survives any given * erosion. Once every pixel is eroded, the maximum value is recorded, and a - * set of masks from size 0 to this size are generaged. The masks are circular + * set of masks from size 0 to this size are generated. The masks are circular * binary masks, where each pixel within a radius N (where N is the size of the * mask) is a 1, and all other pixels are a 0. Although a gaussian mask would be * more mathematically accurate, a binary mask works better in practice because @@ -64,7 +64,7 @@ * condition is met (that the image function itself is continuous), even if the * second boundary condition (that the derivative of the image function is * continuous) is not met. A masking algorithm that does preserve the second - * boundary coundition (perhaps something based on a highly-modified bi-cubic + * boundary condition (perhaps something based on a highly-modified bi-cubic * algorithm) should offer even better results on paper, but the noise in a * typical TV signal should make anything based on derivatives hopelessly noisy. */ diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index b1451cc465..77b94669bd 100644 --- a/libavfilter/vf_signalstats.c +++ b/libavfilter/vf_signalstats.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2010 Mark Heath mjpeg0 @ silicontrip dot org * Copyright (c) 2014 Clément Bœsch - * Copyright (c) 2014 Dave Rice @dericed + * Copyright (c) 2014 Dave Rice * * This file is part of FFmpeg. * @@ -304,7 +304,7 @@ static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) continue; // detect two pixels above and below (to eliminate interlace artefacts) - // should check that video format is infact interlaced. + // should check that video format is in fact interlaced. #define FILTER(i, j) \ filter_tout_outlier(p[(y-j) * lw + x + i], \ @@ -352,7 +352,7 @@ static int filter16_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs continue; // detect two pixels above and below (to eliminate interlace artefacts) - // should check that video format is infact interlaced. + // should check that video format is in fact interlaced. if (y - 2 >= 0 && y + 2 < h) { for (x = 1; x < w - 1; x++) { diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 3b6e9f9955..76fab4d6fa 100644 --- a/libavfilter/vf_signature.c +++ b/libavfilter/vf_signature.c @@ -581,7 +581,7 @@ static int request_frame(AVFilterLink *outlink) StreamContext *sc, *sc2; MatchingInfo match; int i, j, ret; - int lookup = 1; /* indicates wheather EOF of all files is reached */ + int lookup = 1; /* indicates whether EOF of all files is reached */ /* process all inputs */ for (i = 0; i < sic->nb_inputs; i++){ diff --git a/libavfilter/vf_siti.c b/libavfilter/vf_siti.c index 63c848c1e7..fde55b49a9 100644 --- a/libavfilter/vf_siti.c +++ b/libavfilter/vf_siti.c @@ -103,7 +103,7 @@ static av_cold void uninit(AVFilterContext *ctx) static int config_input(AVFilterLink *inlink) { - // Video input data avilable + // Video input data available AVFilterContext *ctx = inlink->dst; SiTiContext *s = ctx->priv; int max_pixsteps[4]; diff --git a/libavfilter/vf_ssim360.c b/libavfilter/vf_ssim360.c index ad357df427..4c9971efdd 100644 --- a/libavfilter/vf_ssim360.c +++ b/libavfilter/vf_ssim360.c @@ -38,7 +38,7 @@ /* * @file - * Caculate the SSIM between two input 360 videos. + * Calculate the SSIM between two input 360 videos. */ #include @@ -250,7 +250,7 @@ static const AVOption ssim360_options[] = { OFFSET(ref_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS }, { "main_pad", - "Expansion (padding) coeffiecient for each cube face of the main video", + "Expansion (padding) coefficient for each cube face of the main video", OFFSET(main_pad), AV_OPT_TYPE_FLOAT, {.dbl = .0f}, 0, 10, .flags = FLAGS }, { "use_tape", diff --git a/libavfilter/vf_tonemap_opencl.c b/libavfilter/vf_tonemap_opencl.c index 758c0e5e94..26fc02923c 100644 --- a/libavfilter/vf_tonemap_opencl.c +++ b/libavfilter/vf_tonemap_opencl.c @@ -158,7 +158,7 @@ static int tonemap_opencl_init(AVFilterContext *avctx) av_log(ctx, AV_LOG_DEBUG, "mapping range from %s to %s\n", av_color_range_name(ctx->range_in), av_color_range_name(ctx->range_out)); - // checking valid value just because of limited implementaion + // checking valid value just because of limited implementation // please remove when more functionalities are implemented av_assert0(ctx->trc_out == AVCOL_TRC_BT709 || ctx->trc_out == AVCOL_TRC_BT2020_10); diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index 8b3b75dc19..c5efd44f92 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -410,7 +410,7 @@ static int config_input(AVFilterLink *inlink) } avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; avctx_enc->global_quality = 123; - avctx_enc->thread_count = 1; // We do threading in the filter with muiltiple codecs + avctx_enc->thread_count = 1; // We do threading in the filter with multiple codecs ret = avcodec_open2(avctx_enc, enc, &opts); av_dict_free(&opts); if (ret < 0) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index ef40dea054..45b89ebc39 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -648,7 +648,7 @@ static int graphs_build(AVFrame *in, AVFrame *out, const AVPixFmtDescriptor *des alpha_src_format = s->alpha_src_format; alpha_dst_format = s->alpha_dst_format; /* The input slice is specified through the active_region field, unlike the output slice. - according to zimg requirements input and output slices should have even dimentions */ + according to zimg requirements input and output slices should have even dimensions */ alpha_src_format.active_region.width = in->width; alpha_src_format.active_region.height = in_slice_end - in_slice_start; alpha_src_format.active_region.left = 0; diff --git a/libavfilter/vsrc_ddagrab.c b/libavfilter/vsrc_ddagrab.c index 49d5873c2f..6533e2b66e 100644 --- a/libavfilter/vsrc_ddagrab.c +++ b/libavfilter/vsrc_ddagrab.c @@ -716,7 +716,7 @@ static int next_frame_internal(AVFilterContext *avctx, ID3D11Texture2D **desktop goto error; } - // Unforunately, we can't rely on the desktop_resource's format in this case. + // Unfortunately, we can't rely on the desktop_resource's format in this case. // The API might even return it in with a format that was not in the initial // list of supported formats, and it can change/flicker randomly. // To work around this, return an internal copy of the last valid texture we got. diff --git a/libavfilter/x86/vf_hqdn3d.asm b/libavfilter/x86/vf_hqdn3d.asm index 2c0ca45571..1dfdc6c8fb 100644 --- a/libavfilter/x86/vf_hqdn3d.asm +++ b/libavfilter/x86/vf_hqdn3d.asm @@ -87,7 +87,7 @@ ALIGN 16 mov [frameantq+xq*2], t0w movifnidn dstq, dstmp %if %1 != 16 - shr t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some contraints on register allocation + shr t0d, 16-%1 ; could eliminate this by storing from t0h, but only with some constraints on register allocation %endif %if %1 == 8 mov [dstq+xq], t0b diff --git a/libavformat/amvenc.c b/libavformat/amvenc.c index 5ff4f69cfa..8e584bc9ed 100644 --- a/libavformat/amvenc.c +++ b/libavformat/amvenc.c @@ -68,7 +68,7 @@ typedef struct AMVContext /* * Cumulative PTS values for each stream, used for the final - * duration calculcation. + * duration calculation. */ int64_t lastpts[AMV_STREAM_COUNT]; } AMVContext; diff --git a/libavformat/apm.c b/libavformat/apm.c index 98c5439738..b3716c1d80 100644 --- a/libavformat/apm.c +++ b/libavformat/apm.c @@ -252,7 +252,7 @@ static int apm_write_header(AVFormatContext *s) avio_wl16(s->pb, APM_TAG_CODEC); avio_wl16(s->pb, par->ch_layout.nb_channels); avio_wl32(s->pb, par->sample_rate); - /* This is the wrong calculation, but it's what the orginal files have. */ + /* This is the wrong calculation, but it's what the original files have. */ avio_wl32(s->pb, par->sample_rate * par->ch_layout.nb_channels * 2); avio_wl16(s->pb, par->block_align); avio_wl16(s->pb, par->bits_per_coded_sample); diff --git a/libavformat/av1.h b/libavformat/av1.h index a393fbb78f..c67a485246 100644 --- a/libavformat/av1.h +++ b/libavformat/av1.h @@ -72,7 +72,7 @@ int ff_av1_filter_obus(AVIOContext *pb, const uint8_t *buf, int size); * * @return 0 in case of success, a negative AVERROR code in case of failure. * On failure, *out and *size are unchanged - * @note *out will be treated as unintialized on input and will not be freed. + * @note *out will be treated as uninitialized on input and will not be freed. */ int ff_av1_filter_obus_buf(const uint8_t *in, uint8_t **out, int *size, int *offset); diff --git a/libavformat/avformat.h b/libavformat/avformat.h index b6c63e2237..be6e532387 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -926,7 +926,7 @@ typedef struct AVStream { * the sixth @ref AVStreamGroup.streams "stream" in the group is "512,512", * etc. * - * The following is an example of a canvas with overlaping tiles: + * The following is an example of a canvas with overlapping tiles: * * +-----------+ * | %%%%% | @@ -1420,7 +1420,7 @@ typedef struct AVFormatContext { #define AVFMT_FLAG_NONBLOCK 0x0004 ///< Do not block when reading packets from input. #define AVFMT_FLAG_IGNDTS 0x0008 ///< Ignore DTS on frames that contain both DTS & PTS #define AVFMT_FLAG_NOFILLIN 0x0010 ///< Do not infer any values from other values, just return what is stored in the container -#define AVFMT_FLAG_NOPARSE 0x0020 ///< Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the fillin code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled +#define AVFMT_FLAG_NOPARSE 0x0020 ///< Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the filling code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled #define AVFMT_FLAG_NOBUFFER 0x0040 ///< Do not buffer frames when possible #define AVFMT_FLAG_CUSTOM_IO 0x0080 ///< The caller has supplied a custom AVIOContext, don't avio_close() it. #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100 ///< Discard frames marked corrupted @@ -1670,7 +1670,7 @@ typedef struct AVFormatContext { int use_wallclock_as_timestamps; /** - * Skip duration calcuation in estimate_timings_from_pts. + * Skip duration calculation in estimate_timings_from_pts. * - encoding: unused * - decoding: set by user * @@ -1773,7 +1773,7 @@ typedef struct AVFormatContext { /** * IO repositioned flag. - * This is set by avformat when the underlaying IO context read pointer + * This is set by avformat when the underlying IO context read pointer * is repositioned, for example when doing byte based seeking. * Demuxers can use the flag to detect such changes. */ diff --git a/libavformat/cache.c b/libavformat/cache.c index 5d71e56f3d..0d682213d5 100644 --- a/libavformat/cache.c +++ b/libavformat/cache.c @@ -154,7 +154,7 @@ static int add_entry(URLContext *h, const unsigned char *buf, int size) return 0; fail: //we could truncate the file to pos here if pos >=0 but ftruncate isn't available in VS so - //for simplicty we just leave the file a bit larger + //for simplicity we just leave the file a bit larger av_free(entry); av_free(node); return ret; diff --git a/libavformat/crypto.c b/libavformat/crypto.c index da8aa0f0ec..bcfee6a3ee 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -156,7 +156,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary if (ret < 0) goto err; - // pass back information about the context we openned + // pass back information about the context we opened if (c->hd->is_streamed) h->is_streamed = c->hd->is_streamed; } @@ -171,7 +171,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary if (ret < 0) goto err; // for write, we must be streamed - // - linear write only for crytpo aes-128-cbc + // - linear write only for crypto aes-128-cbc h->is_streamed = 1; } diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 278c70315d..1f59d3a41c 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -871,7 +871,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url, type = get_content_type(adaptionset_node); if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO && type != AVMEDIA_TYPE_SUBTITLE) { - av_log(s, AV_LOG_VERBOSE, "Parsing '%s' - skipp not supported representation type\n", url); + av_log(s, AV_LOG_VERBOSE, "Parsing '%s' - skip not supported representation type\n", url); return 0; } diff --git a/libavformat/demux.h b/libavformat/demux.h index e83d84a201..7c22c870e2 100644 --- a/libavformat/demux.h +++ b/libavformat/demux.h @@ -260,7 +260,7 @@ void ff_rfps_calculate(AVFormatContext *ic); * belongs, from a timebase `tb_in` to a timebase `tb_out`. * * The upper (lower) bound of the output interval is rounded up (down) such that - * the output interval always falls within the intput interval. The timestamp is + * the output interval always falls within the input interval. The timestamp is * rounded to the nearest integer and halfway cases away from zero, and can * therefore fall outside of the output interval. * diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index f026f0e53b..570717320c 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -160,7 +160,7 @@ static int get_audio_flags(AVFormatContext *s, AVCodecParameters *par) } else { switch (par->sample_rate) { case 48000: - // 48khz mp3 is stored with 44k1 samplerate identifer + // 48khz mp3 is stored with 44k1 samplerate identifier if (par->codec_id == AV_CODEC_ID_MP3) { flags |= FLV_SAMPLERATE_44100HZ; break; diff --git a/libavformat/ftp.c b/libavformat/ftp.c index fba32715ec..761dce8128 100644 --- a/libavformat/ftp.c +++ b/libavformat/ftp.c @@ -805,7 +805,7 @@ static int64_t ftp_seek(URLContext *h, int64_t pos, int whence) return AVERROR(EIO); if (new_pos < 0) { - av_log(h, AV_LOG_ERROR, "Seeking to nagative position.\n"); + av_log(h, AV_LOG_ERROR, "Seeking to negative position.\n"); return AVERROR(EINVAL); } diff --git a/libavformat/hevc.h b/libavformat/hevc.h index 5bb68fdd8a..83e149f702 100644 --- a/libavformat/hevc.h +++ b/libavformat/hevc.h @@ -103,7 +103,7 @@ int ff_isom_write_hvcc(AVIOContext *pb, const uint8_t *data, * LHEVCDecoderConfigurationRecord) to the provided AVIOContext. * * If the extradata is Annex B format, it gets converted to lhvC format before - * writing. Otherwise, hvcC formated extradata is expected, not lhvC. + * writing. Otherwise, hvcC formatted extradata is expected, not lhvC. * * @param pb address of the AVIOContext where the lhvC shall be written * @param data address of the buffer holding the data needed to write the lhvC diff --git a/libavformat/hls.c b/libavformat/hls.c index bac3e98648..a61786ef5d 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2726,7 +2726,7 @@ static int hls_read_seek(AVFormatContext *s, int stream_index, if (pls->is_subtitle) avformat_close_input(&pls->ctx); - /* Reset the init segment so it's re-fetched and served appropiately */ + /* Reset the init segment so it's re-fetched and served appropriately */ pls->cur_init_section = NULL; pls->seek_timestamp = seek_timestamp; diff --git a/libavformat/http.c b/libavformat/http.c index ff63c25969..0d4077512b 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1338,7 +1338,7 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path, } } - // if no domain in the cookie assume it appied to this request + // if no domain in the cookie assume it applied to this request if ((e = av_dict_get(cookie_params, "domain", NULL, 0)) && e->value) { // find the offset comparison is on the min domain (b.com, not a.b.com) int domain_offset = strlen(domain) - strlen(e->value); diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c index 2fc2841c58..50acd7cf5a 100644 --- a/libavformat/iamf_parse.c +++ b/libavformat/iamf_parse.c @@ -657,7 +657,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb, if (param_definition) { if (param_definition->param_size != param_size || memcmp(param_definition->param, param, param_size)) { - av_log(s, AV_LOG_ERROR, "Incosistent parameters for parameter_id %u\n", parameter_id); + av_log(s, AV_LOG_ERROR, "Inconsistent parameters for parameter_id %u\n", parameter_id); av_free(param); return AVERROR_INVALIDDATA; } @@ -731,7 +731,7 @@ static int audio_element_obu(void *s, IAMFContext *c, AVIOContext *pb, int len) codec_config = ff_iamf_get_codec_config(c, codec_config_id); if (!codec_config) { - av_log(s, AV_LOG_ERROR, "Non existant codec config id %d referenced in an audio element\n", codec_config_id); + av_log(s, AV_LOG_ERROR, "Non existent codec config id %d referenced in an audio element\n", codec_config_id); ret = AVERROR_INVALIDDATA; goto fail; } diff --git a/libavformat/iamf_reader.c b/libavformat/iamf_reader.c index 5cbe89ca68..f7abdf4207 100644 --- a/libavformat/iamf_reader.c +++ b/libavformat/iamf_reader.c @@ -132,7 +132,7 @@ static int parameter_block_obu(AVFormatContext *s, IAMFDemuxContext *c, parameter_id = ffio_read_leb(pb); param_definition = ff_iamf_get_param_definition(&c->iamf, parameter_id); if (!param_definition) { - av_log(s, AV_LOG_VERBOSE, "Non existant parameter_id %d referenced in a parameter block. Ignoring\n", + av_log(s, AV_LOG_VERBOSE, "Non existent parameter_id %d referenced in a parameter block. Ignoring\n", parameter_id); ret = 0; goto fail; diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c index f88987790d..e9dd170380 100644 --- a/libavformat/iamf_writer.c +++ b/libavformat/iamf_writer.c @@ -236,7 +236,7 @@ int ff_iamf_add_audio_element(IAMFContext *iamf, const AVStreamGroup *stg, void return AVERROR(EINVAL); } if (layer->ambisonics_mode >= AV_IAMF_AMBISONICS_MODE_PROJECTION) { - av_log(log_ctx, AV_LOG_ERROR, "Unsuported ambisonics mode %d\n", layer->ambisonics_mode); + av_log(log_ctx, AV_LOG_ERROR, "Unsupported ambisonics mode %d\n", layer->ambisonics_mode); return AVERROR_PATCHWELCOME; } for (int i = 0; i < stg->nb_streams; i++) { diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index 0441824126..037d1a2e23 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -1012,7 +1012,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata, if (tcomp) { int err; - av_log(s, AV_LOG_DEBUG, "Compresssed frame %s tlen=%d dlen=%ld\n", tag, tlen, dlen); + av_log(s, AV_LOG_DEBUG, "Compressed frame %s tlen=%d dlen=%ld\n", tag, tlen, dlen); if (tlen <= 0) goto seek; diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index b4df37daa3..def9b2b7a7 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -139,15 +139,15 @@ static int imf_uri_is_unix_abs_path(const char *string) static int imf_uri_is_dos_abs_path(const char *string) { - /* Absolute path case: `C:\path\to\somwhere` */ + /* Absolute path case: `C:\path\to\somewhere` */ if (string[1] == ':' && string[2] == '\\') return 1; - /* Absolute path case: `C:/path/to/somwhere` */ + /* Absolute path case: `C:/path/to/somewhere` */ if (string[1] == ':' && string[2] == '/') return 1; - /* Network path case: `\\path\to\somwhere` */ + /* Network path case: `\\path\to\somewhere` */ if (string[0] == '\\' && string[1] == '\\') return 1; diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 3389fa818e..f0ed84f8f6 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -374,7 +374,7 @@ int ff_img_read_header(AVFormatContext *s1) st->codecpar->codec_id = ff_guess_image2_codec(s->path); if (st->codecpar->codec_id == AV_CODEC_ID_LJPEG) st->codecpar->codec_id = AV_CODEC_ID_MJPEG; - if (st->codecpar->codec_id == AV_CODEC_ID_ALIAS_PIX) // we cannot distingiush this from BRENDER_PIX + if (st->codecpar->codec_id == AV_CODEC_ID_ALIAS_PIX) // we cannot distinguish this from BRENDER_PIX st->codecpar->codec_id = AV_CODEC_ID_NONE; } if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && diff --git a/libavformat/ipfsgateway.c b/libavformat/ipfsgateway.c index 1a8382d7be..4699b8c3d7 100644 --- a/libavformat/ipfsgateway.c +++ b/libavformat/ipfsgateway.c @@ -46,7 +46,7 @@ typedef struct IPFSGatewayContext { } IPFSGatewayContext; // A best-effort way to find the IPFS gateway. -// Only the most appropiate gateway is set. It's not actually requested +// Only the most appropriate gateway is set. It's not actually requested // (http call) to prevent a potential slowdown in startup. A potential timeout // is handled by the HTTP protocol. static int populate_ipfs_gateway(URLContext *h) @@ -171,7 +171,7 @@ static int populate_ipfs_gateway(URLContext *h) goto err; } - // Replace first occurence of end of line with \0 + // Replace first occurrence of end of line with \0 c->gateway_buffer[strcspn(c->gateway_buffer, "\r\n")] = 0; // If strlen finds anything longer then 0 characters then we have a diff --git a/libavformat/ircamdec.c b/libavformat/ircamdec.c index 017d03b183..a39ae78beb 100644 --- a/libavformat/ircamdec.c +++ b/libavformat/ircamdec.c @@ -39,7 +39,7 @@ static int ircam_probe(const AVProbeData *p) return 0; } -static const struct endianess { +static const struct endianness { uint32_t magic; int is_le; } table[] = { diff --git a/libavformat/libssh.c b/libavformat/libssh.c index 523b79befe..f71b89e438 100644 --- a/libavformat/libssh.c +++ b/libavformat/libssh.c @@ -272,7 +272,7 @@ static int64_t libssh_seek(URLContext *h, int64_t pos, int whence) } if (newpos < 0) { - av_log(h, AV_LOG_ERROR, "Seeking to nagative position.\n"); + av_log(h, AV_LOG_ERROR, "Seeking to negative position.\n"); return AVERROR(EINVAL); } diff --git a/libavformat/m4vdec.c b/libavformat/m4vdec.c index befe4d7906..2b454d8bb5 100644 --- a/libavformat/m4vdec.c +++ b/libavformat/m4vdec.c @@ -59,7 +59,7 @@ static int mpeg4video_probe(const AVProbeData *probe_packet) res++; } - // res_main repesents the reserved codes within the "main" profile, they are + // res_main represents the reserved codes within the "main" profile, they are // added to the reserved ones if it appears that this is a "main" profile // stream if (res_main && 2*res_main < VOP) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index da5166319e..65271aba21 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -85,7 +85,7 @@ #define LEVEL_ENDED 3 /* return value of ebml_parse when the * syntax level used for parsing ended. */ #define SKIP_THRESHOLD 1024 * 1024 /* In non-seekable mode, if more than SKIP_THRESHOLD - * of unkown, potentially damaged data is encountered, + * of unknown, potentially damaged data is encountered, * it is considered an error. */ #define UNKNOWN_EQUIV 50 * 1024 /* An unknown element is considered equivalent * to this many bytes of unknown data for the @@ -1418,7 +1418,7 @@ static int ebml_parse(MatroskaDemuxContext *matroska, } if (!(pb->seekable & AVIO_SEEKABLE_NORMAL)) { - // Loosing sync will likely manifest itself as encountering unknown + // Losing sync will likely manifest itself as encountering unknown // elements which are not reliably distinguishable from elements // belonging to future extensions of the format. // We use a heuristic to detect such situations: If the current @@ -1436,7 +1436,7 @@ static int ebml_parse(MatroskaDemuxContext *matroska, // UNKNOWN_EQUIV of skipped bytes for the check. // The whole check is only done for non-seekable output, because // in this situation skipped data can't simply be rechecked later. - // This is especially important when using unkown length elements + // This is especially important when using unknown length elements // as the check for whether a child exceeds its containing master // element is not effective in this situation. if (update_pos) { diff --git a/libavformat/mov.c b/libavformat/mov.c index d6bc377ace..99201306d4 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3950,7 +3950,7 @@ static int find_prev_closest_index(AVStream *st, while (*index >= 0 && (*tts_index) >= 0 && (*tts_index) < tts_count) { // Find a "key frame" with PTS <= timestamp_pts (So that we can decode B-frames correctly). - // No need to add dts_shift to the timestamp here becase timestamp_pts has already been + // No need to add dts_shift to the timestamp here because timestamp_pts has already been // compensated by dts_shift above. if ((e_old[*index].timestamp + tts_data[*tts_index].offset) <= timestamp_pts && (e_old[*index].flags & AVINDEX_KEYFRAME)) { @@ -4448,7 +4448,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) } } // If there are empty edits, then msc->min_corrected_pts might be positive - // intentionally. So we subtract the sum duration of emtpy edits here. + // intentionally. So we subtract the sum duration of empty edits here. msc->min_corrected_pts -= empty_edits_sum_duration; // If the minimum pts turns out to be greater than zero after fixing the index, then we subtract the @@ -8429,7 +8429,7 @@ static int mov_read_dops(MOVContext *c, AVIOContext *pb, MOVAtom atom) avio_read(pb, st->codecpar->extradata + 9, size - 9); /* OpusSpecificBox is stored in big-endian, but OpusHead is - little-endian; aside from the preceeding magic and version they're + little-endian; aside from the preceding magic and version they're otherwise currently identical. Data after output gain at offset 16 doesn't need to be bytewapped. */ pre_skip = AV_RB16A(st->codecpar->extradata + 10); @@ -8531,7 +8531,7 @@ static int mov_read_lhvc(MOVContext *c, AVIOContext *pb, MOVAtom atom) num_arrays = buf[5]; old_size = st->codecpar->extradata_size; - atom.size -= 8 /* account for mov_realloc_extradata offseting */ + atom.size -= 8 /* account for mov_realloc_extradata offsetting */ + 6 /* lhvC bytes before the arrays*/; ret = mov_realloc_extradata(st->codecpar, atom); diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 4cb91b0bbd..585a018e35 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -871,7 +871,7 @@ static int mov_write_dops_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra return AVERROR_INVALIDDATA; } /* extradata contains an Ogg OpusHead, other than byte-ordering and - OpusHead's preceeding magic/version, OpusSpecificBox is currently + OpusHead's preceding magic/version, OpusSpecificBox is currently identical. */ channels = AV_RB8(track->extradata[track->last_stsd_index] + 9); channel_map = AV_RB8(track->extradata[track->last_stsd_index] + 18); @@ -3229,7 +3229,7 @@ static int mov_preroll_write_stbl_atoms(AVIOContext *pb, MOVTrack *track) if (roll_samples_remaining <= 0) break; } - /* We don't have enough preceeding samples to compute a valid + /* We don't have enough preceding samples to compute a valid roll_distance here, so this sample can't be independently decoded. */ if (roll_samples_remaining > 0) @@ -7324,7 +7324,7 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt) /* * Subtitles require special handling. * - * 1) For full complaince, every track must have a sample at + * 1) For full compliance, every track must have a sample at * dts == 0, which is rarely true for subtitles. So, as soon * as we see any packet with dts > 0, write an empty subtitle * at dts == 0 for any subtitle track with no samples in it. diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index deb69a0548..981dd8cf0d 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -203,7 +203,7 @@ static const AVOption options[] = { {.i64 = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM }, {"skip_unknown_pmt", "skip PMTs for programs not advertised in the PAT", offsetof(MpegTSContext, skip_unknown_pmt), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM }, - {"merge_pmt_versions", "re-use streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL, + {"merge_pmt_versions", "reuse streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM }, {"skip_changes", "skip changing / adding streams / programs", offsetof(MpegTSContext, skip_changes), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 }, @@ -2273,7 +2273,7 @@ static AVStream *find_matching_stream(MpegTSContext *ts, int pid, unsigned int p if (found) { av_log(ts->stream, AV_LOG_VERBOSE, - "re-using existing %s stream %d (pid=0x%x) for new pid=0x%x\n", + "reusing existing %s stream %d (pid=0x%x) for new pid=0x%x\n", av_get_media_type_string(found->codecpar->codec_type), found->index, found->id, pid); } diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index f5e6a8fd25..2bc53447d0 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -90,7 +90,7 @@ #define ONIT_TID 0x41 /* Network Information section - other network */ #define SDT_TID 0x42 /* Service Description section - actual TS */ /* TID from 0x43 to 0x45 are reserved for future use */ -#define OSDT_TID 0x46 /* Service Descrition section - other TS */ +#define OSDT_TID 0x46 /* Service Description section - other TS */ /* TID from 0x47 to 0x49 are reserved for future use */ #define BAT_TID 0x4A /* Bouquet Association section */ #define UNT_TID 0x4B /* Update Notification Table section */ @@ -106,7 +106,7 @@ #define RST_TID 0x71 /* Running Status section */ #define ST_TID 0x72 /* Stuffing section */ #define TOT_TID 0x73 /* Time Offset section */ -#define AIT_TID 0x74 /* Application Inforamtion section */ +#define AIT_TID 0x74 /* Application Information section */ #define CT_TID 0x75 /* Container section */ #define RCT_TID 0x76 /* Related Content section */ #define CIT_TID 0x77 /* Content Identifier section */ diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index c045d2c7c8..aa45d23b39 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mvdec.c @@ -47,7 +47,7 @@ typedef struct MvContext { int aformat; ///< audio format } MvContext; -/* these magic numbers are defined in moviefile.h on Silicon Grahpics IRIX */ +/* these magic numbers are defined in moviefile.h on Silicon Graphics IRIX */ #define MOVIE_SOUND 1 #define MOVIE_SILENT 2 diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 184e97256c..06987ad818 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -955,7 +955,7 @@ static int mxf_add_metadata_set(MXFContext *mxf, MXFMetadataSet **metadata_set, int ret; // Index Table is special because it might be added manually without - // partition and we iterate thorugh all instances of them. Also some files + // partition and we iterate through all instances of them. Also some files // use the same Instance UID for different index tables... if (type != IndexTableSegment) { for (int i = 0; i < mg->metadata_sets_count; i++) { diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index a3b38ec575..8470e5bcd2 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1062,7 +1062,7 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF AVIOContext *pb = s->pb; mxf_write_metadata_key(pb, 0x011100); - PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16); + PRINT_KEY(s, "structural component key", pb->buf_ptr - 16); klv_encode_ber_length(pb, 108); // write uid diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index dd01765d7d..9ec913ebbe 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -72,7 +72,7 @@ * so the header seems to not be mandatory. (for streaming). * * index slice duration check (excepts nsvtrailer.nsv): - * for f in [^n]*.nsv; do DUR="$(ffmpeg -i "$f" 2>/dev/null | grep 'NSVf duration' | cut -d ' ' -f 4)"; IC="$(ffmpeg -i "$f" 2>/dev/null | grep 'INDEX ENTRIES' | cut -d ' ' -f 2)"; echo "duration $DUR, slite time $(($DUR/$IC))"; done + * for f in [^n]*.nsv; do DUR="$(ffmpeg -i "$f" 2>/dev/null | grep 'NSVf duration' | cut -d ' ' -f 4)"; IC="$(ffmpeg -i "$f" 2>/dev/null | grep 'INDEX ENTRIES' | cut -d ' ' -f 2)"; echo "duration $DUR, slice time $(($DUR/$IC))"; done */ /* diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index c15fbe738e..256a17c5e3 100644 --- a/libavformat/oggdec.h +++ b/libavformat/oggdec.h @@ -43,7 +43,7 @@ struct ogg_codec { * @return < 0 (AVERROR) code or -1 on error * == 0 if the packet was a regular data packet. * == 1 if the packet was a header from a chained bitstream. - * This will cause the packet to be skiped in calling code (ogg_packet() + * This will cause the packet to be skipped in calling code (ogg_packet() */ int (*packet)(AVFormatContext *, int); /** @@ -141,7 +141,7 @@ extern const struct ogg_codec ff_vp8_codec; /** * Parse Vorbis comments * - * @note The buffer will be temporarily modifed by this function, + * @note The buffer will be temporarily modified by this function, * so it needs to be writable. Furthermore it must be padded * by a single byte (not counted in size). * All changes will have been reverted upon return. @@ -152,7 +152,7 @@ int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, /** * Parse Vorbis comments and add metadata to an AVStream * - * @note The buffer will be temporarily modifed by this function, + * @note The buffer will be temporarily modified by this function, * so it needs to be writable. Furthermore it must be padded * by a single byte (not counted in size). * All changes will have been reverted upon return. diff --git a/libavformat/scd.c b/libavformat/scd.c index e57733a8d8..06d3408e15 100644 --- a/libavformat/scd.c +++ b/libavformat/scd.c @@ -52,7 +52,7 @@ typedef struct SCDOffsetTable { typedef struct SCDHeader { uint64_t magic; /* SEDBSSCF */ - uint32_t version; /* Verison number. We only know about 3. */ + uint32_t version; /* Version number. We only know about 3. */ uint16_t unk1; /* Unknown, 260 in Drakengard 3, 1024 in FFXIV. */ uint16_t header_size; /* Total size of this header. */ uint32_t file_size; /* Is often 0, just ignore it. */ diff --git a/libavformat/segment.c b/libavformat/segment.c index 65323ec678..05383de841 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -72,7 +72,7 @@ typedef struct SegmentContext { const AVClass *class; /**< Class for private options. */ int segment_idx; ///< index of the segment file to write, starting from 0 int segment_idx_wrap; ///< number after which the index wraps - int segment_idx_wrap_nb; ///< number of time the index has wraped + int segment_idx_wrap_nb; ///< number of time the index has wrapped int segment_count; ///< number of segment files already written const AVOutputFormat *oformat; AVFormatContext *avf; @@ -100,11 +100,11 @@ typedef struct SegmentContext { char *times_str; ///< segment times specification string int64_t *times; ///< list of segment interval specification - int nb_times; ///< number of elments in the times array + int nb_times; ///< number of elements in the times array char *frames_str; ///< segment frame numbers specification string int *frames; ///< list of frame number specification - int nb_frames; ///< number of elments in the frames array + int nb_frames; ///< number of elements in the frames array int frame_count; ///< total number of reference frames int segment_frame_count; ///< number of reference frames in the segment diff --git a/libavformat/srtdec.c b/libavformat/srtdec.c index 6bf73599a7..abeca051f4 100644 --- a/libavformat/srtdec.c +++ b/libavformat/srtdec.c @@ -199,8 +199,8 @@ static int srt_read_header(AVFormatContext *s) } /* Append the last event. Here we force the cache to be flushed, because a - * trailing number is more likely to be geniune (for example a copyright - * date) and not the event index of an inexistant event */ + * trailing number is more likely to be genuine (for example a copyright + * date) and not the event index of an inexistent event */ if (has_event_info) { res = add_event(&srt->q, &buf, line_cache, &ei, 1); if (res < 0) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 499cd19ef5..9f7b46c3ca 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -878,7 +878,7 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** } } - /* This seems to be neccesary despite explicitly setting client/server method above. */ + /* This seems to be necessary despite explicitly setting client/server method above. */ if (c->listen) SSL_set_accept_state(p->ssl); else diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c index c92870347f..b60e3100be 100644 --- a/libavformat/tls_schannel.c +++ b/libavformat/tls_schannel.c @@ -1429,7 +1429,7 @@ static int tls_write(URLContext *h, const uint8_t *buf, int len) ret = tls_process_send_buffer(h); if (ret == AVERROR(EAGAIN)) { - /* We always need to signal that we consumed all (encryped) data since schannel must not + /* We always need to signal that we consumed all (encrypted) data since schannel must not be fed the same data again. Sending will then be completed next call to this function, and EAGAIN returned until all remaining buffer is sent. */ return outbuf[1].cbBuffer; diff --git a/libavformat/ttaenc.c b/libavformat/ttaenc.c index 671820f00e..efc5aac88c 100644 --- a/libavformat/ttaenc.c +++ b/libavformat/ttaenc.c @@ -71,7 +71,7 @@ static int tta_write_header(AVFormatContext *s) if ((ret = avio_open_dyn_buf(&tta->seek_table)) < 0) return ret; - /* Ignore most extradata information if present. It can be innacurate + /* Ignore most extradata information if present. It can be inaccurate if for example remuxing from Matroska */ ffio_init_checksum(s->pb, ff_crcEDB88320_update, UINT32_MAX); ffio_init_checksum(tta->seek_table, ff_crcEDB88320_update, UINT32_MAX); diff --git a/libavformat/udp.c b/libavformat/udp.c index 035db785c2..84f9d3e62e 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -545,7 +545,7 @@ static void *circular_buffer_task_rx( void *_URLContext) pthread_mutex_unlock(&s->mutex); /* Blocking operations are always cancellation points; - see "General Information" / "Thread Cancelation Overview" + see "General Information" / "Thread Cancellation Overview" in Single Unix. */ pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old_cancelstate); pkt_header.pkt_size = recvfrom(s->udp_fd, s->tmp + sizeof(pkt_header), sizeof(s->tmp) - sizeof(pkt_header), 0, (struct sockaddr *)&pkt_header.addr, &pkt_header.addr_len); diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index 679eb2ce54..a515f4e2a2 100644 --- a/libavformat/wavenc.c +++ b/libavformat/wavenc.c @@ -252,7 +252,7 @@ static int peak_write_chunk(AVFormatContext *s) WAVMuxContext *wav = s->priv_data; AVIOContext *pb = s->pb; AVCodecParameters *par = s->streams[0]->codecpar; - int64_t peak = ff_start_tag(s->pb, "levl"); + int64_t peak = ff_start_tag(s->pb, "levl"); // codespell:ignore int64_t now0; time_t now_secs; char timestamp[28]; diff --git a/libavformat/whip.c b/libavformat/whip.c index fd6de8503f..256ea14d2c 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -258,7 +258,7 @@ typedef struct WHIPContext { int64_t whip_dtls_time; int64_t whip_srtp_time; - /* The certificate and private key content used for DTLS hanshake */ + /* The certificate and private key content used for DTLS handshake */ char cert_buf[MAX_CERTIFICATE_SIZE]; char key_buf[MAX_CERTIFICATE_SIZE]; /* The fingerprint of certificate, used in SDP offer. */ diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 0c0ef05bbe..3d63d1ded2 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -575,7 +575,7 @@ static int write_root_table(AVFormatContext *s, int64_t sector_pos) } } - // caculate root table size + // calculate root table size size = avio_tell(pb) - sector_pos; pad = WTV_SECTOR_SIZE- size; write_pad(pb, pad); diff --git a/libavutil/channel_layout.h b/libavutil/channel_layout.h index b82d07eb5e..5ad2d5ed98 100644 --- a/libavutil/channel_layout.h +++ b/libavutil/channel_layout.h @@ -307,7 +307,7 @@ typedef struct AVChannelCustom { * - with a constructor function, such as av_channel_layout_default(), * av_channel_layout_from_mask() or av_channel_layout_from_string(). * - * The channel layout must be unitialized with av_channel_layout_uninit() + * The channel layout must be uninitialized with av_channel_layout_uninit() * * Copying an AVChannelLayout via assigning is forbidden, * av_channel_layout_copy() must be used instead (and its return value should @@ -365,7 +365,7 @@ typedef struct AVChannelLayout { * * map[i].name may be filled with a 0-terminated string, in which case * it will be used for the purpose of identifying the channel with the - * convenience functions below. Otherise it must be zeroed. + * convenience functions below. Otherwise it must be zeroed. */ AVChannelCustom *map; } u; diff --git a/libavutil/csp.h b/libavutil/csp.h index 9b74c631d2..9871b1c9b2 100644 --- a/libavutil/csp.h +++ b/libavutil/csp.h @@ -114,7 +114,7 @@ const AVColorPrimariesDesc *av_csp_primaries_desc_from_id(enum AVColorPrimaries * @see enum AVColorPrimaries * @param prm A description of the colorspace gamut * @return The enum constant associated with this gamut, or - * AVCOL_PRI_UNSPECIFIED if no clear match can be idenitified. + * AVCOL_PRI_UNSPECIFIED if no clear match can be identified. */ enum AVColorPrimaries av_csp_primaries_id_from_desc(const AVColorPrimariesDesc *prm); diff --git a/libavutil/dict.h b/libavutil/dict.h index 654e7c35bd..93c7cbf128 100644 --- a/libavutil/dict.h +++ b/libavutil/dict.h @@ -225,7 +225,7 @@ void av_dict_free(AVDictionary **m); * @warning Separators cannot be neither '\\' nor '\0'. They also cannot be the same. * * @param[in] m The dictionary - * @param[out] buffer Pointer to buffer that will be allocated with string containg entries. + * @param[out] buffer Pointer to buffer that will be allocated with string containing entries. * Buffer must be freed by the caller when is no longer needed. * @param[in] key_val_sep Character used to separate key from value * @param[in] pairs_sep Character used to separate two pairs from each other diff --git a/libavutil/film_grain_params.h b/libavutil/film_grain_params.h index 7e8d333777..2915611c9c 100644 --- a/libavutil/film_grain_params.h +++ b/libavutil/film_grain_params.h @@ -124,7 +124,7 @@ typedef struct AVFilmGrainAOMParams { /** * This structure describes how to handle film grain synthesis for codecs using - * the ITU-T H.274 Versatile suplemental enhancement information message. + * the ITU-T H.274 Versatile supplemental enhancement information message. * * @note The struct must be allocated as part of AVFilmGrainParams using * av_film_grain_params_alloc(). Its size is not a part of the public ABI. diff --git a/libavutil/frame.h b/libavutil/frame.h index c50cd263d9..d440cfba2e 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -96,7 +96,7 @@ enum AVFrameSideDataType { */ AV_FRAME_DATA_MOTION_VECTORS, /** - * Recommmends skipping the specified number of samples. This is exported + * Recommends skipping the specified number of samples. This is exported * only if the "skip_manual" AVOption is set in libavcodec. * This has the same format as AV_PKT_DATA_SKIP_SAMPLES. * @code diff --git a/libavutil/hdr_dynamic_vivid_metadata.h b/libavutil/hdr_dynamic_vivid_metadata.h index a9d4797f0b..d45b4a0f65 100644 --- a/libavutil/hdr_dynamic_vivid_metadata.h +++ b/libavutil/hdr_dynamic_vivid_metadata.h @@ -83,7 +83,7 @@ typedef struct AVHDRVividColorToneMappingParams { AVRational targeted_system_display_maximum_luminance; /** - * This flag indicates that transfer the base paramter(for value of 1) + * This flag indicates that transfer the base parameter(for value of 1) */ int base_enable_flag; @@ -145,7 +145,7 @@ typedef struct AVHDRVividColorToneMappingParams { int base_param_k3; /** - * This flag indicates that delta mode of base paramter(for value of 1) + * This flag indicates that delta mode of base parameter(for value of 1) */ int base_param_Delta_enable_mode; @@ -158,7 +158,7 @@ typedef struct AVHDRVividColorToneMappingParams { /** * indicates 3Spline_enable_flag in the base parameter, - * This flag indicates that transfer three Spline of base paramter(for value of 1) + * This flag indicates that transfer three Spline of base parameter(for value of 1) */ int three_Spline_enable_flag; diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h index 94fd11da73..29374cf0a7 100644 --- a/libavutil/hwcontext.h +++ b/libavutil/hwcontext.h @@ -563,7 +563,7 @@ enum { * values indicate that it failed somehow. * * On failure, the destination frame will be left blank, except for the - * hw_frames_ctx/format fields thay may have been set by the caller - those will + * hw_frames_ctx/format fields they may have been set by the caller - those will * be preserved as they were. * * @param dst Destination frame, to contain the mapping. diff --git a/libavutil/hwcontext_opencl.h b/libavutil/hwcontext_opencl.h index ef54486c95..22702300ad 100644 --- a/libavutil/hwcontext_opencl.h +++ b/libavutil/hwcontext_opencl.h @@ -75,7 +75,7 @@ typedef struct AVOpenCLDeviceContext { /** * The default command queue for this device, which will be used by all * frames contexts which do not have their own command queue. If not - * intialised by the user, a default queue will be created on the + * initialised by the user, a default queue will be created on the * primary device. */ cl_command_queue command_queue; diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 629a8a9d56..b92c9cb0ad 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -146,24 +146,24 @@ static const struct { { AV_PIX_FMT_Y210, MFX_FOURCC_Y210, 1 }, // VUYX is used for VAAPI child device, - // the SDK only delares support for AYUV + // the SDK only declares support for AYUV { AV_PIX_FMT_VUYX, MFX_FOURCC_AYUV, 0 }, // XV30 is used for VAAPI child device, - // the SDK only delares support for Y410 + // the SDK only declares support for Y410 { AV_PIX_FMT_XV30, MFX_FOURCC_Y410, 0 }, #if QSV_VERSION_ATLEAST(1, 31) // P012 is used for VAAPI child device, - // the SDK only delares support for P016 + // the SDK only declares support for P016 { AV_PIX_FMT_P012, MFX_FOURCC_P016, 1 }, // Y212 is used for VAAPI child device, - // the SDK only delares support for Y216 + // the SDK only declares support for Y216 { AV_PIX_FMT_Y212, MFX_FOURCC_Y216, 1 }, // XV36 is used for VAAPI child device, - // the SDK only delares support for Y416 + // the SDK only declares support for Y416 { AV_PIX_FMT_XV36, MFX_FOURCC_Y416, 1 }, #endif @@ -1837,7 +1837,7 @@ static int qsv_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst, /* According to MSDK spec for mfxframeinfo, "Width must be a multiple of 16. * Height must be a multiple of 16 for progressive frame sequence and a - * multiple of 32 otherwise.", so allign all frames to 16 before downloading. */ + * multiple of 32 otherwise.", so align all frames to 16 before downloading. */ if (dst->height & 15 || dst->linesize[0] & 15) { realigned = 1; if (tmp_frame->format != dst->format || @@ -1921,7 +1921,7 @@ static int qsv_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, /* According to MSDK spec for mfxframeinfo, "Width must be a multiple of 16. * Height must be a multiple of 16 for progressive frame sequence and a - * multiple of 32 otherwise.", so allign all frames to 16 before uploading. */ + * multiple of 32 otherwise.", so align all frames to 16 before uploading. */ if (src->height & 15 || src->linesize[0] & 15) { realigned = 1; if (tmp_frame->format != src->format || diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 6d7df3e619..96f5075d64 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2568,7 +2568,7 @@ static int create_frame(AVHWFramesContext *hwfc, AVVkFrame **frame, return AVERROR(ENOMEM); } - // TODO: check witdh and height for alignment in case of multiplanar (must be mod-2 if subsampled) + // TODO: check width and height for alignment in case of multiplanar (must be mod-2 if subsampled) /* Create the images */ for (int i = 0; (hwfc_vk->format[i] != VK_FORMAT_UNDEFINED); i++) { diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index 6ab74579ac..15cf515668 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -115,7 +115,7 @@ typedef struct AVVulkanDeviceContext { #if FF_API_VULKAN_FIXED_QUEUES /** * Queue family index for graphics operations, and the number of queues - * enabled for it. If unavaiable, will be set to -1. Not required. + * enabled for it. If unavailable, will be set to -1. Not required. * av_hwdevice_create() will attempt to find a dedicated queue for each * queue family, or pick the one with the least unrelated flags set. * Queue indices here may overlap if a queue has to share capabilities. diff --git a/libavutil/iamf.h b/libavutil/iamf.h index 2ed7b0f2d8..855f64280a 100644 --- a/libavutil/iamf.h +++ b/libavutil/iamf.h @@ -213,11 +213,11 @@ typedef struct AVIAMFParamDefinition { enum AVIAMFParamDefinitionType type; /** - * Identifier for the paremeter substream. + * Identifier for the parameter substream. */ unsigned int parameter_id; /** - * Sample rate for the paremeter substream. It must not be 0. + * Sample rate for the parameter substream. It must not be 0. */ unsigned int parameter_rate; diff --git a/libavutil/internal.h b/libavutil/internal.h index ac1af367e9..06df322e21 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -141,7 +141,7 @@ void avpriv_request_sample(void *avc, # define ff_tlog(ctx, ...) do { } while(0) #endif -// For debuging we use signed operations so overflows can be detected (by ubsan) +// For debugging we use signed operations so overflows can be detected (by ubsan) // For production we use unsigned so there are no undefined operations #ifdef CHECKED #define SUINT int diff --git a/libavutil/lfg.h b/libavutil/lfg.h index e75a986f12..043d0ab343 100644 --- a/libavutil/lfg.h +++ b/libavutil/lfg.h @@ -28,7 +28,7 @@ * Context structure for the Lagged Fibonacci PRNG. * The exact layout, types and content of this struct may change and should * not be accessed directly. Only its `sizeof()` is guaranteed to stay the same - * to allow easy instanciation. + * to allow easy instantiation. */ typedef struct AVLFG { unsigned int state[64]; @@ -73,7 +73,7 @@ static inline unsigned int av_mlfg_get(AVLFG *c){ * Get the next two numbers generated by a Box-Muller Gaussian * generator using the random numbers issued by lfg. * - * @param lfg pointer to the contex structure + * @param lfg pointer to the context structure * @param out array where the two generated numbers are placed */ void av_bmg_get(AVLFG *lfg, double out[2]); diff --git a/libavutil/log.h b/libavutil/log.h index ac5b08b632..4a111ca9a5 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -277,9 +277,9 @@ void av_log(void *avcl, int level, const char *fmt, ...) av_printf_format(3, 4); * @param avcl A pointer to an arbitrary struct of which the first field is a * pointer to an AVClass struct or NULL if general log. * @param initial_level importance level of the message expressed using a @ref - * lavu_log_constants "Logging Constant" for the first occurance. + * lavu_log_constants "Logging Constant" for the first occurrence. * @param subsequent_level importance level of the message expressed using a @ref - * lavu_log_constants "Logging Constant" after the first occurance. + * lavu_log_constants "Logging Constant" after the first occurrence. * @param fmt The format string (printf-compatible) that specifies how * subsequent arguments are converted to output. * @param state a variable to keep trak of if a message has already been printed diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index e213bab68c..486de530f2 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -278,7 +278,7 @@ int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int /** * Add a value to a timestamp. * - * This function guarantees that when the same value is repeatly added that + * This function guarantees that when the same value is repeatedly added that * no accumulation of rounding errors occurs. * * @param[in] ts Input timestamp diff --git a/libavutil/opt.h b/libavutil/opt.h index d313679263..ab24fae777 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -542,7 +542,7 @@ typedef struct AVOptionRanges { */ int nb_ranges; /** - * Number of componentes. + * Number of components. */ int nb_components; } AVOptionRanges; @@ -1137,7 +1137,7 @@ int av_opt_flag_is_set(void *obj, const char *field_name, const char *flag_name) * @param[in] obj AVClass object to serialize * @param[in] opt_flags serialize options with all the specified flags set (AV_OPT_FLAG) * @param[in] flags combination of AV_OPT_SERIALIZE_* flags - * @param[out] buffer Pointer to buffer that will be allocated with string containg serialized options. + * @param[out] buffer Pointer to buffer that will be allocated with string containing serialized options. * Buffer must be freed by the caller when is no longer needed. * @param[in] key_val_sep character used to separate key from value * @param[in] pairs_sep character used to separate two pairs from each other @@ -1167,7 +1167,7 @@ void av_opt_freep_ranges(AVOptionRanges **ranges); * * The result must be freed with av_opt_freep_ranges. * - * @return number of compontents returned on success, a negative errro code otherwise + * @return number of components returned on success, a negative error code otherwise */ int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags); @@ -1183,7 +1183,7 @@ int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags * * The result must be freed with av_opt_free_ranges. * - * @return number of compontents returned on success, a negative errro code otherwise + * @return number of components returned on success, a negative error code otherwise */ int av_opt_query_ranges_default(AVOptionRanges **, void *obj, const char *key, int flags); diff --git a/libavutil/rational.h b/libavutil/rational.h index 849f47f38d..30ac2aced7 100644 --- a/libavutil/rational.h +++ b/libavutil/rational.h @@ -22,7 +22,7 @@ /** * @file * @ingroup lavu_math_rational - * Utilties for rational number calculation. + * Utilities for rational number calculation. * @author Michael Niedermayer */ diff --git a/libavutil/rc4.h b/libavutil/rc4.h index bf0ca6e942..0c72a88ecd 100644 --- a/libavutil/rc4.h +++ b/libavutil/rc4.h @@ -43,7 +43,7 @@ AVRC4 *av_rc4_alloc(void); * @brief Initializes an AVRC4 context. * * @param d pointer to the AVRC4 context - * @param key buffer containig the key + * @param key buffer containing the key * @param key_bits must be a multiple of 8 * @param decrypt 0 for encryption, 1 for decryption, currently has no effect * @return zero on success, negative value otherwise diff --git a/libavutil/refstruct.h b/libavutil/refstruct.h index 967418bc16..4e9d78eb0a 100644 --- a/libavutil/refstruct.h +++ b/libavutil/refstruct.h @@ -161,7 +161,7 @@ int av_refstruct_exclusive(const void *obj); * * Frequently allocating and freeing large or complicated objects may be slow * and wasteful. This API is meant to solve this in cases when the caller - * needs a set of interchangable objects. + * needs a set of interchangeable objects. * * At the beginning, the user must call allocate the pool via * av_refstruct_pool_alloc() or its analogue av_refstruct_pool_alloc_ext(). diff --git a/libavutil/tdrdi.h b/libavutil/tdrdi.h index 8dcca42c7b..8629775a2b 100644 --- a/libavutil/tdrdi.h +++ b/libavutil/tdrdi.h @@ -119,7 +119,7 @@ typedef struct AV3DReferenceDisplay { uint8_t mantissa_ref_display_width; /** - * Tthe exponent part of the reference viewing distance of the n-th reference display. + * The exponent part of the reference viewing distance of the n-th reference display. */ uint8_t exponent_ref_viewing_distance; diff --git a/libavutil/tests/opt.c b/libavutil/tests/opt.c index bfe351b4b3..8ab76c4690 100644 --- a/libavutil/tests/opt.c +++ b/libavutil/tests/opt.c @@ -491,7 +491,7 @@ int main(void) av_log_set_level(AV_LOG_QUIET); for (i=0; i < FF_ARRAY_ELEMS(options); i++) { - int silence_log = !strcmp(options[i], "rational=-1/0"); // inf formating differs between platforms + int silence_log = !strcmp(options[i], "rational=-1/0"); // inf formatting differs between platforms av_log(&test_ctx, AV_LOG_DEBUG, "Setting options string '%s'\n", options[i]); if (silence_log) av_log_set_callback(NULL); diff --git a/libavutil/tests/sha512.c b/libavutil/tests/sha512.c index f3b90fdf49..abe1a19218 100644 --- a/libavutil/tests/sha512.c +++ b/libavutil/tests/sha512.c @@ -55,7 +55,7 @@ int main(void) printf("%02X", digest[i]); putchar('\n'); } - switch (j) { //test vectors (from FIPS PUB 180-4 Apendix A) + switch (j) { //test vectors (from FIPS PUB 180-4 Appendix A) case 0: printf("4634270f 707b6a54 daae7530 460842e2 0e37ed26 5ceee9a4 3e8924aa\n" "23fec5bb 94d60b23 30819264 0b0c4533 35d66473 4fe40e72 68674af9\n" diff --git a/libavutil/tx.h b/libavutil/tx.h index 4696988cae..c950095735 100644 --- a/libavutil/tx.h +++ b/libavutil/tx.h @@ -50,7 +50,7 @@ enum AVTXType { /** * Standard MDCT with a sample data type of float, double or int32_t, - * respecively. For the float and int32 variants, the scale type is + * respectively. For the float and int32 variants, the scale type is * 'float', while for the double variant, it's 'double'. * If scale is NULL, 1.0 will be used as a default. * diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c index 701ef0d6de..ec630954b8 100644 --- a/libavutil/tx_template.c +++ b/libavutil/tx_template.c @@ -1031,7 +1031,7 @@ retry: break; } - /* If nothing was sucessful, error out */ + /* If nothing was successful, error out */ if (ret < 0) return ret; diff --git a/libavutil/version.h b/libavutil/version.h index b454106960..5f550dcee0 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -35,7 +35,7 @@ * Useful to check and match library version in order to maintain * backward compatibility. * - * The FFmpeg libraries follow a versioning sheme very similar to + * The FFmpeg libraries follow a versioning scheme very similar to * Semantic Versioning (http://semver.org/) * The difference is that the component called PATCH is called MICRO in FFmpeg * and its value is reset to 100 instead of 0 to keep it above or equal to 100. @@ -72,7 +72,7 @@ /** * @defgroup lavu_ver Version and Build diagnostics * - * Macros and function useful to check at compiletime and at runtime + * Macros and function useful to check at compile time and at runtime * which version of libavutil is in use. * * @{ diff --git a/libavutil/video_hint.h b/libavutil/video_hint.h index 1b2196093b..8e8af0ae90 100644 --- a/libavutil/video_hint.h +++ b/libavutil/video_hint.h @@ -80,7 +80,7 @@ av_video_hint_get_rect(const AVVideoHint *hints, size_t idx) { * The side data contains a list of rectangles for the portions of the frame * which changed from the last encoded one (and the remainder are assumed to be * changed), or, alternately (depending on the type parameter) the unchanged - * ones (and the remanining ones are those which changed). + * ones (and the remaining ones are those which changed). * Macroblocks will thus be hinted either to be P_SKIP-ped or go through the * regular encoding procedure. * diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 04cc45ee05..420e7f631f 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -447,7 +447,7 @@ int ff_vk_exec_pool_init(FFVulkanContext *s, AVVulkanDeviceQueueFamily *qf, pool->query_results = nb_queries; pool->query_statuses = nb_queries; - /* Video encode quieries produce two results per query */ + /* Video encode queries produce two results per query */ if (query_type == VK_QUERY_TYPE_VIDEO_ENCODE_FEEDBACK_KHR) { int nb_results = av_popcount(ef->encodeFeedbackFlags); pool->query_status_stride = nb_results + 1; diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index 6e1fb0c66f..f55b85a52d 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -115,9 +115,9 @@ static int sane_layout(AVChannelLayout *ch_layout) { return 0; if(!av_channel_layout_subset(ch_layout, AV_CH_LAYOUT_SURROUND)) // at least 1 front speaker return 0; - if(!even(av_channel_layout_subset(ch_layout, (AV_CH_FRONT_LEFT | AV_CH_FRONT_RIGHT)))) // no asymetric front + if(!even(av_channel_layout_subset(ch_layout, (AV_CH_FRONT_LEFT | AV_CH_FRONT_RIGHT)))) // no asymmetric front return 0; - if(!even(av_channel_layout_subset(ch_layout, (AV_CH_SIDE_LEFT | AV_CH_SIDE_RIGHT)))) // no asymetric side + if(!even(av_channel_layout_subset(ch_layout, (AV_CH_SIDE_LEFT | AV_CH_SIDE_RIGHT)))) // no asymmetric side return 0; if(!even(av_channel_layout_subset(ch_layout, (AV_CH_BACK_LEFT | AV_CH_BACK_RIGHT)))) return 0; diff --git a/libswresample/swresample.h b/libswresample/swresample.h index 0e1929b3ed..052089acca 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -337,7 +337,7 @@ int64_t swr_next_pts(struct SwrContext *s, int64_t pts); * @} * * @name Low-level option setting functions - * These functons provide a means to set low-level options that is not possible + * These functions provide a means to set low-level options that is not possible * with the AVOption API. * @{ */ diff --git a/libswscale/aarch64/hscale.S b/libswscale/aarch64/hscale.S index 4140fa9c60..6c14246a42 100644 --- a/libswscale/aarch64/hscale.S +++ b/libswscale/aarch64/hscale.S @@ -261,12 +261,12 @@ function ff_hscale8to15_4_neon, export=1 add x5, x5, #32 // advance filterPos // interleaved SIMD and prefetching intended to keep ld/st and vector pipelines busy - uxtl v16.8h, v16.8b // unsigned extend long, covert src data to 16-bit - uxtl v17.8h, v17.8b // unsigned extend long, covert src data to 16-bit + uxtl v16.8h, v16.8b // unsigned extend long, convert src data to 16-bit + uxtl v17.8h, v17.8b // unsigned extend long, convert src data to 16-bit ldr w8, [x3, w8, uxtw] // src[filterPos[idx + 0]], next iteration ldr w9, [x3, w9, uxtw] // src[filterPos[idx + 1]], next iteration - uxtl v18.8h, v18.8b // unsigned extend long, covert src data to 16-bit - uxtl v19.8h, v19.8b // unsigned extend long, covert src data to 16-bit + uxtl v18.8h, v18.8b // unsigned extend long, convert src data to 16-bit + uxtl v19.8h, v19.8b // unsigned extend long, convert src data to 16-bit ldr w10, [x3, w10, uxtw] // src[filterPos[idx + 2]], next iteration ldr w11, [x3, w11, uxtw] // src[filterPos[idx + 3]], next iteration @@ -302,10 +302,10 @@ function ff_hscale8to15_4_neon, export=1 movi v0.16b, #0 // Clear madd accumulator for idx 0..3 movi v5.16b, #0 // Clear madd accumulator for idx 4..7 - uxtl v16.8h, v16.8b // unsigned extend long, covert src data to 16-bit - uxtl v17.8h, v17.8b // unsigned extend long, covert src data to 16-bit - uxtl v18.8h, v18.8b // unsigned extend long, covert src data to 16-bit - uxtl v19.8h, v19.8b // unsigned extend long, covert src data to 16-bit + uxtl v16.8h, v16.8b // unsigned extend long, convert src data to 16-bit + uxtl v17.8h, v17.8b // unsigned extend long, convert src data to 16-bit + uxtl v18.8h, v18.8b // unsigned extend long, convert src data to 16-bit + uxtl v19.8h, v19.8b // unsigned extend long, convert src data to 16-bit smlal v0.4s, v1.4h, v16.4h // multiply accumulate inner loop j = 0, idx = 0..3 smlal v0.4s, v2.4h, v17.4h // multiply accumulate inner loop j = 1, idx = 0..3 @@ -336,7 +336,7 @@ function ff_hscale8to15_4_neon, export=1 // load filter ld1 {v6.4h}, [x4], #8 // filter[filterSize * i + 0..3] - uxtl v5.8h, v5.8b // unsigned exten long, convert src data to 16-bit + uxtl v5.8h, v5.8b // unsigned extend long, convert src data to 16-bit smull v0.4s, v5.4h, v6.4h // 4 iterations of src[...] * filter[...] addv s0, v0.4s // add up products of src and filter values sqshrn h0, s0, #7 // shift and clip the 2x16-bit final value @@ -842,7 +842,7 @@ function ff_hscale16to15_X8_neon_asm, export=1 sxtl2 v5.4s, v5.8h // extend filter upper half to 32 bits uxtl v26.4s, v6.4h // extend srcp lower half to 32 bits mla v0.4s, v4.4s, v5.4s // multiply accumulate upper half of v4 * v5 - sxtl v27.4s, v7.4h // exted filter lower half + sxtl v27.4s, v7.4h // extend filter lower half uxtl2 v6.4s, v6.8h // extend srcp upper half sxtl2 v7.4s, v7.8h // extend filter upper half ld1 {v16.8h}, [x10], #16 // srcp[filterPos[2] + {0..7}] @@ -869,7 +869,7 @@ function ff_hscale16to15_X8_neon_asm, export=1 addp v2.4s, v2.4s, v3.4s // part23 horizontal pair adding addp v0.4s, v0.4s, v2.4s // part0123 horizontal pair adding subs w2, w2, #4 // dstW -= 4 - sshl v0.4s, v0.4s, v21.4s // shift right (effectively rigth, as shift is negative); overflow expected + sshl v0.4s, v0.4s, v21.4s // shift right (effectively right, as shift is negative); overflow expected smin v0.4s, v0.4s, v20.4s // apply min (do not use sqshl) xtn v0.4h, v0.4s // narrow down to 16 bits @@ -1247,7 +1247,7 @@ function ff_hscale16to19_X8_neon_asm, export=1 sxtl2 v5.4s, v5.8h // extend filter upper half to 32 bits uxtl v26.4s, v6.4h // extend srcp lower half to 32 bits mla v0.4s, v4.4s, v5.4s // multiply accumulate upper half of v4 * v5 - sxtl v27.4s, v7.4h // exted filter lower half + sxtl v27.4s, v7.4h // extend filter lower half uxtl2 v6.4s, v6.8h // extend srcp upper half sxtl2 v7.4s, v7.8h // extend filter upper half ld1 {v16.8h}, [x10], #16 // srcp[filterPos[2] + {0..7}] @@ -1274,7 +1274,7 @@ function ff_hscale16to19_X8_neon_asm, export=1 addp v2.4s, v2.4s, v3.4s // part23 horizontal pair adding addp v0.4s, v0.4s, v2.4s // part0123 horizontal pair adding subs w2, w2, #4 // dstW -= 4 - sshl v0.4s, v0.4s, v21.4s // shift right (effectively rigth, as shift is negative); overflow expected + sshl v0.4s, v0.4s, v21.4s // shift right (effectively right, as shift is negative); overflow expected smin v0.4s, v0.4s, v20.4s // apply min (do not use sqshl) st1 {v0.4s}, [x1], #16 // write to destination part0123 b.gt 1b // loop until end of line diff --git a/libswscale/arm/output.S b/libswscale/arm/output.S index 5f10585f81..670c6189e0 100644 --- a/libswscale/arm/output.S +++ b/libswscale/arm/output.S @@ -30,7 +30,7 @@ function ff_yuv2planeX_8_neon, export=1 vld1.8 {d0}, [r5] @ load 8x8-bit dither values cmp r6, #0 @ check offsetting which can be 0 or 3 only beq 1f - vext.u8 d0, d0, d0, #3 @ honor offseting which can be 3 only + vext.u8 d0, d0, d0, #3 @ honor offsetting which can be 3 only 1: vmovl.u8 q0, d0 @ extend dither to 16-bit vshll.u16 q1, d0, #12 @ extend dither to 32-bit with left shift by 12 (part 1) vshll.u16 q2, d1, #12 @ extend dither to 32-bit with left shift by 12 (part 2) diff --git a/libswscale/arm/rgb2yuv_neon_common.S b/libswscale/arm/rgb2yuv_neon_common.S index 30bcecd5bb..ca7d13063f 100644 --- a/libswscale/arm/rgb2yuv_neon_common.S +++ b/libswscale/arm/rgb2yuv_neon_common.S @@ -158,7 +158,7 @@ endfunc .endm -/* acculumate and right shift by 2 */ +/* accumulate and right shift by 2 */ .macro downsample_ars2 vpadal.u8 r16x8, r8x16 vpadal.u8 g16x8, g8x16 diff --git a/libswscale/cms.c b/libswscale/cms.c index a23d7a9772..3a1a438c49 100644 --- a/libswscale/cms.c +++ b/libswscale/cms.c @@ -400,7 +400,7 @@ static void st2094_pick_knee(float src_max, float src_min, float src_avg, adapted = fmixf(dst_min, dst_max, target); /** - * Choose the destnation knee by picking the perceptual adaptation point + * Choose the destination knee by picking the perceptual adaptation point * between the source knee and the desired target. This moves the knee * point, on the vertical axis, closer to the 1:1 (neutral) line. * diff --git a/libswscale/format.c b/libswscale/format.c index 53162f8756..5bb4cd0c29 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -447,7 +447,7 @@ static int infer_prim_ref(SwsColor *csp, const SwsColor *ref) if (csp->prim != AVCOL_PRI_UNSPECIFIED) return 0; - /* Re-use the reference gamut only for "safe", similar primaries */ + /* Reuse the reference gamut only for "safe", similar primaries */ switch (ref->prim) { case AVCOL_PRI_BT709: case AVCOL_PRI_BT470M: diff --git a/libswscale/graph.c b/libswscale/graph.c index dc7784aa49..5bc524f1e3 100644 --- a/libswscale/graph.c +++ b/libswscale/graph.c @@ -155,7 +155,7 @@ static void run_rgb2xyz(const SwsImg *out, const SwsImg *in, int y, int h, } /*********************************************************************** - * Internal ff_swscale() wrapper. This re-uses the legacy scaling API. * + * Internal ff_swscale() wrapper. This reuses the legacy scaling API. * * This is considered fully deprecated, and will be replaced by a full * * reimplementation ASAP. * ***********************************************************************/ diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c index 931a004ca7..a6b6650e02 100644 --- a/libswscale/ppc/yuv2rgb_altivec.c +++ b/libswscale/ppc/yuv2rgb_altivec.c @@ -41,7 +41,7 @@ * MODIFIED to calculate coeffs from currently selected color space. * MODIFIED core to be a macro where you specify the output format. * ADDED UYVY conversion which is never called due to some thing in swscale. - * CORRECTED algorithim selection to be strict on input formats. + * CORRECTED algorithm selection to be strict on input formats. * ADDED runtime detection of AltiVec. * * ADDED altivec_yuv2packedX vertical scl + RGB converter diff --git a/libswscale/swscale.h b/libswscale/swscale.h index b04aa182d2..39e23075a4 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -126,7 +126,7 @@ typedef enum SwsFlags { * the 100x100 yuv444p image to rgba in the final output step. * * Without this flag, the chroma plane is instead scaled to 50x100 (4:2:2), - * with a single chroma sample being re-used for both of the horizontally + * with a single chroma sample being reused for both of the horizontally * adjacent RGBA output pixels. */ SWS_FULL_CHR_H_INT = 1 << 13, diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 68e6754d9d..32428c56fb 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -359,7 +359,7 @@ struct SwsInternal { RangeList src_ranges; - /* The cascaded_* fields allow spliting a scaler task into multiple + /* The cascaded_* fields allow splitting a scaler task into multiple * sequential steps, this is for example used to limit the maximum * downscaling factor that needs to be supported in one scaler. */ diff --git a/libswscale/x86/input.asm b/libswscale/x86/input.asm index 516e4384b1..efdeb9aeb6 100644 --- a/libswscale/x86/input.asm +++ b/libswscale/x86/input.asm @@ -886,7 +886,7 @@ NVXX_TO_UV_FN 5, nv21 pmovzxbd G, [srcGq + xq] pmovzxbd B, [srcBq + xq] %else - ; thought this would be faster but from my measurments its not + ; thought this would be faster but from my measurements its not ; movd m0, [srcRq + xq + 0]; overeads by 2 bytes ; punpcklbw m0, m9 ; interleave bytes with zero ; punpcklwd m0, m9 ; interleave words with zero diff --git a/tests/checkasm/aacencdsp.c b/tests/checkasm/aacencdsp.c index 713284211c..29ddc7562a 100644 --- a/tests/checkasm/aacencdsp.c +++ b/tests/checkasm/aacencdsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/tests/checkasm/ac3dsp.c b/tests/checkasm/ac3dsp.c index 8c682d03cd..b5db3a4381 100644 --- a/tests/checkasm/ac3dsp.c +++ b/tests/checkasm/ac3dsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * Copyright (c) 2024 Geoff Hill * * This file is part of FFmpeg. diff --git a/tests/checkasm/hevc_deblock.c b/tests/checkasm/hevc_deblock.c index 89dd8a308b..17b26882d2 100644 --- a/tests/checkasm/hevc_deblock.c +++ b/tests/checkasm/hevc_deblock.c @@ -167,7 +167,7 @@ static void randomize_luma_buffers(int type, int *beta, int32_t tc[2], tc25diff = FFMAX(tc25 - 1, 0); // 4 lines per tc for (i = 0; i < 4; i++) { - // Weak filtering is signficantly simpler to activate as + // Weak filtering is significantly simpler to activate as // we only need to satisfy d0 + d3 < beta, which // can be simplified to d0 + d0 < beta. Using the above // derivations but substiuting b3 for b1 and ensuring diff --git a/tests/checkasm/opusdsp.c b/tests/checkasm/opusdsp.c index 76fb97653c..88511f6e13 100644 --- a/tests/checkasm/opusdsp.c +++ b/tests/checkasm/opusdsp.c @@ -47,7 +47,7 @@ static void test_postfilter(int period) float gains[3] = { 0.3066406250f, 0.2170410156f, 0.1296386719f }; /* The codec will always call with an offset which is aligned once - * (period + 2) is subtracted, but here we have to align it outselves. */ + * (period + 2) is subtracted, but here we have to align it ourselves. */ int offset = FFALIGN(period + 2, 4); declare_func(void, float *data, int period, float *gains, int len); diff --git a/tests/checkasm/rv34dsp.c b/tests/checkasm/rv34dsp.c index 5ab540b83d..0d4716d2ad 100644 --- a/tests/checkasm/rv34dsp.c +++ b/tests/checkasm/rv34dsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/tests/checkasm/rv40dsp.c b/tests/checkasm/rv40dsp.c index c0d02ec81f..a5364d0a60 100644 --- a/tests/checkasm/rv40dsp.c +++ b/tests/checkasm/rv40dsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2024 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/tests/checkasm/svq1enc.c b/tests/checkasm/svq1enc.c index f9abdcbff8..89a777ab8f 100644 --- a/tests/checkasm/svq1enc.c +++ b/tests/checkasm/svq1enc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index b91e0b64ed..051b2bb4bf 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -386,7 +386,7 @@ static void check_hscale(void) filterPos[i] = i; filterPosAvx[i] = i; - // These filter cofficients are chosen to try break two corner + // These filter coefficients are chosen to try break two corner // cases, namely: // // - Negative filter coefficients. The filters output signed diff --git a/tests/checkasm/takdsp.c b/tests/checkasm/takdsp.c index 544edc621d..ed72dab6f2 100644 --- a/tests/checkasm/takdsp.c +++ b/tests/checkasm/takdsp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Institue of Software Chinese Academy of Sciences (ISCAS). + * Copyright (c) 2023 Institute of Software Chinese Academy of Sciences (ISCAS). * * This file is part of FFmpeg. * diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c index bddc9a79fc..2fc45cff8e 100644 --- a/tests/checkasm/vp9dsp.c +++ b/tests/checkasm/vp9dsp.c @@ -256,7 +256,7 @@ static int copy_subcoefs(int16_t *out, const int16_t *in, enum TxfmMode tx, // copy the topleft coefficients such that the return value (being the // coefficient scantable index for the eob token) guarantees that only // the topleft $sub out of $sz (where $sz >= $sub) coefficients in both - // dimensions are non-zero. This leads to braching to specific optimized + // dimensions are non-zero. This leads to branching to specific optimized // simd versions (e.g. dc-only) so that we get full asm coverage in this // test diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak index c6339ec3b6..3a0bd22a27 100644 --- a/tests/fate/h264.mak +++ b/tests/fate/h264.mak @@ -250,7 +250,7 @@ fate-h264: $(FATE_H264-yes) $(FATE_H264_FFPROBE-yes) fate-h264-conformance-aud_mw_e: CMD = framecrc -i $(TARGET_SAMPLES)/h264-conformance/AUD_MW_E.264 -#force framerate so that the option is tested, theres no other case that tests it, its not needed at all otherwise here +#force framerate so that the option is tested, there's no other case that tests it, its not needed at all otherwise here fate-h264-conformance-ba1_ft_c: CMD = framecrc -framerate 19 -i $(TARGET_SAMPLES)/h264-conformance/BA1_FT_C.264 fate-h264-conformance-ba1_sony_d: CMD = framecrc -i $(TARGET_SAMPLES)/h264-conformance/BA1_Sony_D.jsv diff --git a/tests/fate/lavf-audio.mak b/tests/fate/lavf-audio.mak index 7ea0c41da9..2d05dd5e4c 100644 --- a/tests/fate/lavf-audio.mak +++ b/tests/fate/lavf-audio.mak @@ -28,7 +28,7 @@ $(FATE_LAVF_AUDIO): CMD = lavf_audio $(FATE_LAVF_AUDIO): REF = $(SRC_PATH)/tests/ref/lavf/$(@:fate-lavf-%=%) $(FATE_LAVF_AUDIO): $(AREF) -fate-lavf-aiff: CMD = lavf_audio "" "-metadata copyright=noone" +fate-lavf-aiff: CMD = lavf_audio "" "-metadata copyright=noone" # codespell:ignore fate-lavf-al fate-lavf-ul: CMD = lavf_audio "" "" "-ar 44100" fate-lavf-dfpwm: CMD = lavf_audio "" "" "-sample_rate 44100" fate-lavf-ogg: CMD = lavf_audio "" "-c:a flac" diff --git a/tests/fate/spdif.mak b/tests/fate/spdif.mak index 85627b2241..89f38cd0db 100644 --- a/tests/fate/spdif.mak +++ b/tests/fate/spdif.mak @@ -1,4 +1,4 @@ -# This padds the AAC frames to 16 bit words (the actual size is +# This pads the AAC frames to 16 bit words (the actual size is # still available in the ADTS headers). FATE_SPDIF_REMUX-$(call ALLYES, AAC_DEMUXER AAC_DECODER) += fate-spdif-aac-remux fate-spdif-aac-remux: CMD = transcode aac $(TARGET_SAMPLES)/aac/foo.aac spdif "-c copy" "-c copy" diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c index 83cc8343d3..76d40e6e5b 100644 --- a/tools/enc_recon_frame_test.c +++ b/tools/enc_recon_frame_test.c @@ -114,7 +114,7 @@ static int recon_frame_process(PrivData *pd, const AVPacket *pkt) return ret; } - // the encoder's internal format (in which the reconsturcted frames are + // the encoder's internal format (in which the reconstructed frames are // exported) may be different from the user-facing pixel format if (f->format != pd->enc->pix_fmt) { if (!pd->scaler) { @@ -242,7 +242,7 @@ static int process_frame(DecodeContext *dc, AVFrame *frame) else if (ret == AVERROR_EOF) return 0; else if (ret < 0) { - fprintf(stderr, "Error receving a frame from decoder\n"); + fprintf(stderr, "Error receiving a frame from decoder\n"); return ret; } diff --git a/tools/ffeval.c b/tools/ffeval.c index 0a925b390a..d4169ae56c 100644 --- a/tools/ffeval.c +++ b/tools/ffeval.c @@ -41,7 +41,7 @@ static void usage(void) { - printf("Simple expression evalutor, please *don't* turn me to a feature-complete language interpreter\n"); + printf("Simple expression evaluator, please *don't* turn me to a feature-complete language interpreter\n"); printf("usage: ffeval [OPTIONS]\n"); printf("\n" "Options:\n" diff --git a/tools/merge-all-source-plugins b/tools/merge-all-source-plugins index 536e1664a4..cd030cdabe 100755 --- a/tools/merge-all-source-plugins +++ b/tools/merge-all-source-plugins @@ -6,7 +6,7 @@ merge_internal(){ # $1=repository, $2=refspec [ -z "$version" ] && git pull --no-rebase --log --stat --commit --no-edit $1 sourceplugin-$2 } -unset suceeded failed version +unset succeeded failed version merge(){ # $1=repository, $2=refspec merge_internal "$1" "$2" || { @@ -15,7 +15,7 @@ merge(){ # $1=repository, $2=refspec failed="$failed $2" return 0 } - suceeded="$suceeded $2" + succeeded="$succeeded $2" } error(){ @@ -34,5 +34,5 @@ git diff --cached --exit-code >/dev/null ||\ merge "https://github.com/michaelni/FFmpeg.git" "libpostproc" [ -n "$version" ] && echo version: $version -[ -n "$suceeded" ] && echo Succeeded merging: $suceeded +[ -n "$succeeded" ] && echo Succeeded merging: $succeeded [ -n "$failed" ] && echo Failed merging: $failed diff --git a/tools/target_dec_fate.sh b/tools/target_dec_fate.sh index 1377b6b4e8..5ee1433a61 100755 --- a/tools/target_dec_fate.sh +++ b/tools/target_dec_fate.sh @@ -39,7 +39,7 @@ EOF } test -z "$1" && show_help -test ! -d "$1" && echo $1 is not an accessable directory && show_help +test ! -d "$1" && echo $1 is not an accessible directory && show_help test ! -f target_dec_fate.sh && echo $0 Must be run from its location && show_help grep 'CONFIG_OSSFUZZ 0' ../config.h && echo not configured for ossfuzz && show_help diff --git a/tools/zmqshell.py b/tools/zmqshell.py index 8d941636e1..8656dfaecc 100755 --- a/tools/zmqshell.py +++ b/tools/zmqshell.py @@ -12,7 +12,7 @@ Provide a shell used to send interactive commands to a zmq filter. The command assumes there is a running zmq or azmq filter acting as a ZMQ server. -You can send a command to it, follwing the syntax: +You can send a command to it, following the syntax: TARGET COMMAND [COMMAND_ARGS] * TARGET is the target filter identifier to send the command to