History

all: fix typos found by codespell

Timo Rothenpieler committed 1 year ago

Commit 262d41c1 parent 8d439b2303 files · +482 −481Browse files

Showing the changes to libavformat (43 of 303 files). Show all

Unified · Split

43 files
  1. libavformat/amvenc.c +1 −1
  2. libavformat/apm.c +1 −1
  3. libavformat/av1.h +1 −1
  4. libavformat/avformat.h +4 −4
  5. libavformat/cache.c +1 −1
  6. libavformat/crypto.c +2 −2
  7. libavformat/dashdec.c +1 −1
  8. libavformat/demux.h +1 −1
  9. libavformat/flvenc.c +1 −1
  10. libavformat/ftp.c +1 −1
  11. libavformat/hevc.h +1 −1
  12. libavformat/hls.c +1 −1
  13. libavformat/http.c +1 −1
  14. libavformat/iamf_parse.c +2 −2
  15. libavformat/iamf_reader.c +1 −1
  16. libavformat/iamf_writer.c +1 −1
  17. libavformat/id3v2.c +1 −1
  18. libavformat/imfdec.c +3 −3
  19. libavformat/img2dec.c +1 −1
  20. libavformat/ipfsgateway.c +2 −2
  21. libavformat/ircamdec.c +1 −1
  22. libavformat/libssh.c +1 −1
  23. libavformat/m4vdec.c +1 −1
  24. libavformat/matroskadec.c +3 −3
  25. libavformat/mov.c +4 −4
  26. libavformat/movenc.c +3 −3
  27. libavformat/mpegts.c +2 −2
  28. libavformat/mpegts.h +2 −2
  29. libavformat/mvdec.c +1 −1
  30. libavformat/mxfdec.c +1 −1
  31. libavformat/mxfenc.c +1 −1
  32. libavformat/nsvdec.c +1 −1
  33. libavformat/oggdec.h +3 −3
  34. libavformat/scd.c +1 −1
  35. libavformat/segment.c +3 −3
  36. libavformat/srtdec.c +2 −2
  37. libavformat/tls_openssl.c +1 −1
  38. libavformat/tls_schannel.c +1 −1
  39. libavformat/ttaenc.c +1 −1
  40. libavformat/udp.c +1 −1
  41. libavformat/wavenc.c +1 −1
  42. libavformat/whip.c +1 −1
  43. libavformat/wtvenc.c +1 −1
libavformat/amvenc.c+1−1
@@ -68,7 +68,7 @@ typedef struct AMVContext · 67 unmodified lines
6868
6969 /*
7070 * Cumulative PTS values for each stream, used for the final
71− * duration calculcation.
71+ * duration calculation.
7272 */
7373 int64_t lastpts[AMV_STREAM_COUNT];
7474 } AMVContext;
libavformat/apm.c+1−1
@@ -252,7 +252,7 @@ static int apm_write_header(AVFormatContext *s) · 251 unmodified lines
252252 avio_wl16(s->pb, APM_TAG_CODEC);
253253 avio_wl16(s->pb, par->ch_layout.nb_channels);
254254 avio_wl32(s->pb, par->sample_rate);
255− /* This is the wrong calculation, but it's what the orginal files have. */
255+ /* This is the wrong calculation, but it's what the original files have. */
256256 avio_wl32(s->pb, par->sample_rate * par->ch_layout.nb_channels * 2);
257257 avio_wl16(s->pb, par->block_align);
258258 avio_wl16(s->pb, par->bits_per_coded_sample);
libavformat/av1.h+1−1
@@ -72,7 +72,7 @@ int ff_av1_filter_obus(AVIOContext *pb, const uint8_t *buf, int size); · 71 unmodified lines
7272 *
7373 * @return 0 in case of success, a negative AVERROR code in case of failure.
7474 * On failure, *out and *size are unchanged
75− * @note *out will be treated as unintialized on input and will not be freed.
75+ * @note *out will be treated as uninitialized on input and will not be freed.
7676 */
7777 int ff_av1_filter_obus_buf(const uint8_t *in, uint8_t **out,
7878 int *size, int *offset);
libavformat/avformat.h+4−4
@@ -926,7 +926,7 @@ typedef struct AVStream { · 925 unmodified lines
926926 * the sixth @ref AVStreamGroup.streams "stream" in the group is "512,512",
927927 * etc.
928928 *
929− * The following is an example of a canvas with overlaping tiles:
929+ * The following is an example of a canvas with overlapping tiles:
930930 *
931931 * +-----------+
932932 * | %%%%% |
@@ -1420,7 +1420,7 @@ typedef struct AVFormatContext { · 487 unmodified lines
14201420 #define AVFMT_FLAG_NONBLOCK 0x0004 ///< Do not block when reading packets from input.
14211421 #define AVFMT_FLAG_IGNDTS 0x0008 ///< Ignore DTS on frames that contain both DTS & PTS
14221422 #define AVFMT_FLAG_NOFILLIN 0x0010 ///< Do not infer any values from other values, just return what is stored in the container
1423−#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
1423+#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
14241424 #define AVFMT_FLAG_NOBUFFER 0x0040 ///< Do not buffer frames when possible
14251425 #define AVFMT_FLAG_CUSTOM_IO 0x0080 ///< The caller has supplied a custom AVIOContext, don't avio_close() it.
14261426 #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100 ///< Discard frames marked corrupted
@@ -1670,7 +1670,7 @@ typedef struct AVFormatContext { · 243 unmodified lines
16701670 int use_wallclock_as_timestamps;
16711671
16721672 /**
1673− * Skip duration calcuation in estimate_timings_from_pts.
1673+ * Skip duration calculation in estimate_timings_from_pts.
16741674 * - encoding: unused
16751675 * - decoding: set by user
16761676 *
@@ -1773,7 +1773,7 @@ typedef struct AVFormatContext { · 96 unmodified lines
17731773
17741774 /**
17751775 * IO repositioned flag.
1776− * This is set by avformat when the underlaying IO context read pointer
1776+ * This is set by avformat when the underlying IO context read pointer
17771777 * is repositioned, for example when doing byte based seeking.
17781778 * Demuxers can use the flag to detect such changes.
17791779 */
libavformat/cache.c+1−1
@@ -154,7 +154,7 @@ static int add_entry(URLContext *h, const unsigned char *buf, int size) · 153 unmodified lines
154154 return 0;
155155 fail:
156156 //we could truncate the file to pos here if pos >=0 but ftruncate isn't available in VS so
157− //for simplicty we just leave the file a bit larger
157+ //for simplicity we just leave the file a bit larger
158158 av_free(entry);
159159 av_free(node);
160160 return ret;
libavformat/crypto.c+2−2
@@ -156,7 +156,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary · 155 unmodified lines
156156 if (ret < 0)
157157 goto err;
158158
159− // pass back information about the context we openned
159+ // pass back information about the context we opened
160160 if (c->hd->is_streamed)
161161 h->is_streamed = c->hd->is_streamed;
162162 }
@@ -171,7 +171,7 @@ static int crypto_open2(URLContext *h, const char *uri, int flags, AVDictionary · 8 unmodified lines
171171 if (ret < 0)
172172 goto err;
173173 // for write, we must be streamed
174− // - linear write only for crytpo aes-128-cbc
174+ // - linear write only for crypto aes-128-cbc
175175 h->is_streamed = 1;
176176 }
177177
libavformat/dashdec.c+1−1
@@ -871,7 +871,7 @@ static int parse_manifest_representation(AVFormatContext *s, const char *url, · 870 unmodified lines
871871 type = get_content_type(adaptionset_node);
872872 if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO &&
873873 type != AVMEDIA_TYPE_SUBTITLE) {
874− av_log(s, AV_LOG_VERBOSE, "Parsing '%s' - skipp not supported representation type\n", url);
874+ av_log(s, AV_LOG_VERBOSE, "Parsing '%s' - skip not supported representation type\n", url);
875875 return 0;
876876 }
877877
libavformat/demux.h+1−1
@@ -260,7 +260,7 @@ void ff_rfps_calculate(AVFormatContext *ic); · 259 unmodified lines
260260 * belongs, from a timebase `tb_in` to a timebase `tb_out`.
261261 *
262262 * The upper (lower) bound of the output interval is rounded up (down) such that
263− * the output interval always falls within the intput interval. The timestamp is
263+ * the output interval always falls within the input interval. The timestamp is
264264 * rounded to the nearest integer and halfway cases away from zero, and can
265265 * therefore fall outside of the output interval.
266266 *
libavformat/flvenc.c+1−1
@@ -160,7 +160,7 @@ static int get_audio_flags(AVFormatContext *s, AVCodecParameters *par) · 159 unmodified lines
160160 } else {
161161 switch (par->sample_rate) {
162162 case 48000:
163− // 48khz mp3 is stored with 44k1 samplerate identifer
163+ // 48khz mp3 is stored with 44k1 samplerate identifier
164164 if (par->codec_id == AV_CODEC_ID_MP3) {
165165 flags |= FLV_SAMPLERATE_44100HZ;
166166 break;
libavformat/ftp.c+1−1
@@ -805,7 +805,7 @@ static int64_t ftp_seek(URLContext *h, int64_t pos, int whence) · 804 unmodified lines
805805 return AVERROR(EIO);
806806
807807 if (new_pos < 0) {
808− av_log(h, AV_LOG_ERROR, "Seeking to nagative position.\n");
808+ av_log(h, AV_LOG_ERROR, "Seeking to negative position.\n");
809809 return AVERROR(EINVAL);
810810 }
811811
libavformat/hevc.h+1−1
@@ -103,7 +103,7 @@ int ff_isom_write_hvcc(AVIOContext *pb, const uint8_t *data, · 102 unmodified lines
103103 * LHEVCDecoderConfigurationRecord) to the provided AVIOContext.
104104 *
105105 * If the extradata is Annex B format, it gets converted to lhvC format before
106− * writing. Otherwise, hvcC formated extradata is expected, not lhvC.
106+ * writing. Otherwise, hvcC formatted extradata is expected, not lhvC.
107107 *
108108 * @param pb address of the AVIOContext where the lhvC shall be written
109109 * @param data address of the buffer holding the data needed to write the lhvC
libavformat/hls.c+1−1
@@ -2726,7 +2726,7 @@ static int hls_read_seek(AVFormatContext *s, int stream_index, · 2725 unmodified lines
27262726 if (pls->is_subtitle)
27272727 avformat_close_input(&pls->ctx);
27282728
2729− /* Reset the init segment so it's re-fetched and served appropiately */
2729+ /* Reset the init segment so it's re-fetched and served appropriately */
27302730 pls->cur_init_section = NULL;
27312731
27322732 pls->seek_timestamp = seek_timestamp;
libavformat/http.c+1−1
@@ -1338,7 +1338,7 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path, · 1337 unmodified lines
13381338 }
13391339 }
13401340
1341− // if no domain in the cookie assume it appied to this request
1341+ // if no domain in the cookie assume it applied to this request
13421342 if ((e = av_dict_get(cookie_params, "domain", NULL, 0)) && e->value) {
13431343 // find the offset comparison is on the min domain (b.com, not a.b.com)
13441344 int domain_offset = strlen(domain) - strlen(e->value);
libavformat/iamf_parse.c+2−2
@@ -657,7 +657,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb, · 656 unmodified lines
657657
658658 if (param_definition) {
659659 if (param_definition->param_size != param_size || memcmp(param_definition->param, param, param_size)) {
660− av_log(s, AV_LOG_ERROR, "Incosistent parameters for parameter_id %u\n", parameter_id);
660+ av_log(s, AV_LOG_ERROR, "Inconsistent parameters for parameter_id %u\n", parameter_id);
661661 av_free(param);
662662 return AVERROR_INVALIDDATA;
663663 }
@@ -731,7 +731,7 @@ static int audio_element_obu(void *s, IAMFContext *c, AVIOContext *pb, int len) · 67 unmodified lines
731731
732732 codec_config = ff_iamf_get_codec_config(c, codec_config_id);
733733 if (!codec_config) {
734− av_log(s, AV_LOG_ERROR, "Non existant codec config id %d referenced in an audio element\n", codec_config_id);
734+ av_log(s, AV_LOG_ERROR, "Non existent codec config id %d referenced in an audio element\n", codec_config_id);
735735 ret = AVERROR_INVALIDDATA;
736736 goto fail;
737737 }
libavformat/iamf_reader.c+1−1
@@ -132,7 +132,7 @@ static int parameter_block_obu(AVFormatContext *s, IAMFDemuxContext *c, · 131 unmodified lines
132132 parameter_id = ffio_read_leb(pb);
133133 param_definition = ff_iamf_get_param_definition(&c->iamf, parameter_id);
134134 if (!param_definition) {
135− av_log(s, AV_LOG_VERBOSE, "Non existant parameter_id %d referenced in a parameter block. Ignoring\n",
135+ av_log(s, AV_LOG_VERBOSE, "Non existent parameter_id %d referenced in a parameter block. Ignoring\n",
136136 parameter_id);
137137 ret = 0;
138138 goto fail;
libavformat/iamf_writer.c+1−1
@@ -236,7 +236,7 @@ int ff_iamf_add_audio_element(IAMFContext *iamf, const AVStreamGroup *stg, void · 235 unmodified lines
236236 return AVERROR(EINVAL);
237237 }
238238 if (layer->ambisonics_mode >= AV_IAMF_AMBISONICS_MODE_PROJECTION) {
239− av_log(log_ctx, AV_LOG_ERROR, "Unsuported ambisonics mode %d\n", layer->ambisonics_mode);
239+ av_log(log_ctx, AV_LOG_ERROR, "Unsupported ambisonics mode %d\n", layer->ambisonics_mode);
240240 return AVERROR_PATCHWELCOME;
241241 }
242242 for (int i = 0; i < stg->nb_streams; i++) {
libavformat/id3v2.c+1−1
@@ -1012,7 +1012,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata, · 1011 unmodified lines
10121012 if (tcomp) {
10131013 int err;
10141014
1015− av_log(s, AV_LOG_DEBUG, "Compresssed frame %s tlen=%d dlen=%ld\n", tag, tlen, dlen);
1015+ av_log(s, AV_LOG_DEBUG, "Compressed frame %s tlen=%d dlen=%ld\n", tag, tlen, dlen);
10161016
10171017 if (tlen <= 0)
10181018 goto seek;
libavformat/imfdec.c+3−3
@@ -139,15 +139,15 @@ static int imf_uri_is_unix_abs_path(const char *string) · 138 unmodified lines
139139
140140 static int imf_uri_is_dos_abs_path(const char *string)
141141 {
142− /* Absolute path case: `C:\path\to\somwhere` */
142+ /* Absolute path case: `C:\path\to\somewhere` */
143143 if (string[1] == ':' && string[2] == '\\')
144144 return 1;
145145
146− /* Absolute path case: `C:/path/to/somwhere` */
146+ /* Absolute path case: `C:/path/to/somewhere` */
147147 if (string[1] == ':' && string[2] == '/')
148148 return 1;
149149
150− /* Network path case: `\\path\to\somwhere` */
150+ /* Network path case: `\\path\to\somewhere` */
151151 if (string[0] == '\\' && string[1] == '\\')
152152 return 1;
153153
libavformat/img2dec.c+1−1
@@ -374,7 +374,7 @@ int ff_img_read_header(AVFormatContext *s1) · 373 unmodified lines
374374 st->codecpar->codec_id = ff_guess_image2_codec(s->path);
375375 if (st->codecpar->codec_id == AV_CODEC_ID_LJPEG)
376376 st->codecpar->codec_id = AV_CODEC_ID_MJPEG;
377− if (st->codecpar->codec_id == AV_CODEC_ID_ALIAS_PIX) // we cannot distingiush this from BRENDER_PIX
377+ if (st->codecpar->codec_id == AV_CODEC_ID_ALIAS_PIX) // we cannot distinguish this from BRENDER_PIX
378378 st->codecpar->codec_id = AV_CODEC_ID_NONE;
379379 }
380380 if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
libavformat/ipfsgateway.c+2−2
@@ -46,7 +46,7 @@ typedef struct IPFSGatewayContext { · 45 unmodified lines
4646 } IPFSGatewayContext;
4747
4848 // A best-effort way to find the IPFS gateway.
49−// Only the most appropiate gateway is set. It's not actually requested
49+// Only the most appropriate gateway is set. It's not actually requested
5050 // (http call) to prevent a potential slowdown in startup. A potential timeout
5151 // is handled by the HTTP protocol.
5252 static int populate_ipfs_gateway(URLContext *h)
@@ -171,7 +171,7 @@ static int populate_ipfs_gateway(URLContext *h) · 118 unmodified lines
171171 goto err;
172172 }
173173
174− // Replace first occurence of end of line with \0
174+ // Replace first occurrence of end of line with \0
175175 c->gateway_buffer[strcspn(c->gateway_buffer, "\r\n")] = 0;
176176
177177 // If strlen finds anything longer then 0 characters then we have a
libavformat/ircamdec.c+1−1
@@ -39,7 +39,7 @@ static int ircam_probe(const AVProbeData *p) · 38 unmodified lines
3939 return 0;
4040 }
4141
42−static const struct endianess {
42+static const struct endianness {
4343 uint32_t magic;
4444 int is_le;
4545 } table[] = {
libavformat/libssh.c+1−1
@@ -272,7 +272,7 @@ static int64_t libssh_seek(URLContext *h, int64_t pos, int whence) · 271 unmodified lines
272272 }
273273
274274 if (newpos < 0) {
275− av_log(h, AV_LOG_ERROR, "Seeking to nagative position.\n");
275+ av_log(h, AV_LOG_ERROR, "Seeking to negative position.\n");
276276 return AVERROR(EINVAL);
277277 }
278278
libavformat/m4vdec.c+1−1
@@ -59,7 +59,7 @@ static int mpeg4video_probe(const AVProbeData *probe_packet) · 58 unmodified lines
5959 res++;
6060 }
6161
62− // res_main repesents the reserved codes within the "main" profile, they are
62+ // res_main represents the reserved codes within the "main" profile, they are
6363 // added to the reserved ones if it appears that this is a "main" profile
6464 // stream
6565 if (res_main && 2*res_main < VOP)
libavformat/matroskadec.c+3−3
@@ -85,7 +85,7 @@ · 84 unmodified lines
8585 #define LEVEL_ENDED 3 /* return value of ebml_parse when the
8686 * syntax level used for parsing ended. */
8787 #define SKIP_THRESHOLD 1024 * 1024 /* In non-seekable mode, if more than SKIP_THRESHOLD
88− * of unkown, potentially damaged data is encountered,
88+ * of unknown, potentially damaged data is encountered,
8989 * it is considered an error. */
9090 #define UNKNOWN_EQUIV 50 * 1024 /* An unknown element is considered equivalent
9191 * to this many bytes of unknown data for the
@@ -1418,7 +1418,7 @@ static int ebml_parse(MatroskaDemuxContext *matroska, · 1326 unmodified lines
14181418 }
14191419
14201420 if (!(pb->seekable & AVIO_SEEKABLE_NORMAL)) {
1421− // Loosing sync will likely manifest itself as encountering unknown
1421+ // Losing sync will likely manifest itself as encountering unknown
14221422 // elements which are not reliably distinguishable from elements
14231423 // belonging to future extensions of the format.
14241424 // We use a heuristic to detect such situations: If the current
@@ -1436,7 +1436,7 @@ static int ebml_parse(MatroskaDemuxContext *matroska, · 11 unmodified lines
14361436 // UNKNOWN_EQUIV of skipped bytes for the check.
14371437 // The whole check is only done for non-seekable output, because
14381438 // in this situation skipped data can't simply be rechecked later.
1439− // This is especially important when using unkown length elements
1439+ // This is especially important when using unknown length elements
14401440 // as the check for whether a child exceeds its containing master
14411441 // element is not effective in this situation.
14421442 if (update_pos) {
libavformat/mov.c+4−4
@@ -3950,7 +3950,7 @@ static int find_prev_closest_index(AVStream *st, · 3949 unmodified lines
39503950
39513951 while (*index >= 0 && (*tts_index) >= 0 && (*tts_index) < tts_count) {
39523952 // Find a "key frame" with PTS <= timestamp_pts (So that we can decode B-frames correctly).
3953− // No need to add dts_shift to the timestamp here becase timestamp_pts has already been
3953+ // No need to add dts_shift to the timestamp here because timestamp_pts has already been
39543954 // compensated by dts_shift above.
39553955 if ((e_old[*index].timestamp + tts_data[*tts_index].offset) <= timestamp_pts &&
39563956 (e_old[*index].flags & AVINDEX_KEYFRAME)) {
@@ -4448,7 +4448,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st) · 491 unmodified lines
44484448 }
44494449 }
44504450 // If there are empty edits, then msc->min_corrected_pts might be positive
4451− // intentionally. So we subtract the sum duration of emtpy edits here.
4451+ // intentionally. So we subtract the sum duration of empty edits here.
44524452 msc->min_corrected_pts -= empty_edits_sum_duration;
44534453
44544454 // 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) · 3974 unmodified lines
84298429 avio_read(pb, st->codecpar->extradata + 9, size - 9);
84308430
84318431 /* OpusSpecificBox is stored in big-endian, but OpusHead is
8432− little-endian; aside from the preceeding magic and version they're
8432+ little-endian; aside from the preceding magic and version they're
84338433 otherwise currently identical. Data after output gain at offset 16
84348434 doesn't need to be bytewapped. */
84358435 pre_skip = AV_RB16A(st->codecpar->extradata + 10);
@@ -8531,7 +8531,7 @@ static int mov_read_lhvc(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 95 unmodified lines
85318531
85328532 num_arrays = buf[5];
85338533 old_size = st->codecpar->extradata_size;
8534− atom.size -= 8 /* account for mov_realloc_extradata offseting */
8534+ atom.size -= 8 /* account for mov_realloc_extradata offsetting */
85358535 + 6 /* lhvC bytes before the arrays*/;
85368536
85378537 ret = mov_realloc_extradata(st->codecpar, atom);
libavformat/movenc.c+3−3
@@ -871,7 +871,7 @@ static int mov_write_dops_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra · 870 unmodified lines
871871 return AVERROR_INVALIDDATA;
872872 }
873873 /* extradata contains an Ogg OpusHead, other than byte-ordering and
874− OpusHead's preceeding magic/version, OpusSpecificBox is currently
874+ OpusHead's preceding magic/version, OpusSpecificBox is currently
875875 identical. */
876876 channels = AV_RB8(track->extradata[track->last_stsd_index] + 9);
877877 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) · 2351 unmodified lines
32293229 if (roll_samples_remaining <= 0)
32303230 break;
32313231 }
3232− /* We don't have enough preceeding samples to compute a valid
3232+ /* We don't have enough preceding samples to compute a valid
32333233 roll_distance here, so this sample can't be independently
32343234 decoded. */
32353235 if (roll_samples_remaining > 0)
@@ -7324,7 +7324,7 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 4088 unmodified lines
73247324 /*
73257325 * Subtitles require special handling.
73267326 *
7327− * 1) For full complaince, every track must have a sample at
7327+ * 1) For full compliance, every track must have a sample at
73287328 * dts == 0, which is rarely true for subtitles. So, as soon
73297329 * as we see any packet with dts > 0, write an empty subtitle
73307330 * at dts == 0 for any subtitle track with no samples in it.
libavformat/mpegts.c+2−2
@@ -203,7 +203,7 @@ static const AVOption options[] = { · 202 unmodified lines
203203 {.i64 = -1}, -1, 1, AV_OPT_FLAG_DECODING_PARAM },
204204 {"skip_unknown_pmt", "skip PMTs for programs not advertised in the PAT", offsetof(MpegTSContext, skip_unknown_pmt), AV_OPT_TYPE_BOOL,
205205 {.i64 = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM },
206− {"merge_pmt_versions", "re-use streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL,
206+ {"merge_pmt_versions", "reuse streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL,
207207 {.i64 = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM },
208208 {"skip_changes", "skip changing / adding streams / programs", offsetof(MpegTSContext, skip_changes), AV_OPT_TYPE_BOOL,
209209 {.i64 = 0}, 0, 1, 0 },
@@ -2273,7 +2273,7 @@ static AVStream *find_matching_stream(MpegTSContext *ts, int pid, unsigned int p · 2063 unmodified lines
22732273
22742274 if (found) {
22752275 av_log(ts->stream, AV_LOG_VERBOSE,
2276− "re-using existing %s stream %d (pid=0x%x) for new pid=0x%x\n",
2276+ "reusing existing %s stream %d (pid=0x%x) for new pid=0x%x\n",
22772277 av_get_media_type_string(found->codecpar->codec_type),
22782278 found->index, found->id, pid);
22792279 }
libavformat/mpegts.h+2−2
@@ -90,7 +90,7 @@ · 89 unmodified lines
9090 #define ONIT_TID 0x41 /* Network Information section - other network */
9191 #define SDT_TID 0x42 /* Service Description section - actual TS */
9292 /* TID from 0x43 to 0x45 are reserved for future use */
93−#define OSDT_TID 0x46 /* Service Descrition section - other TS */
93+#define OSDT_TID 0x46 /* Service Description section - other TS */
9494 /* TID from 0x47 to 0x49 are reserved for future use */
9595 #define BAT_TID 0x4A /* Bouquet Association section */
9696 #define UNT_TID 0x4B /* Update Notification Table section */
@@ -106,7 +106,7 @@ · 9 unmodified lines
106106 #define RST_TID 0x71 /* Running Status section */
107107 #define ST_TID 0x72 /* Stuffing section */
108108 #define TOT_TID 0x73 /* Time Offset section */
109−#define AIT_TID 0x74 /* Application Inforamtion section */
109+#define AIT_TID 0x74 /* Application Information section */
110110 #define CT_TID 0x75 /* Container section */
111111 #define RCT_TID 0x76 /* Related Content section */
112112 #define CIT_TID 0x77 /* Content Identifier section */
libavformat/mvdec.c+1−1
@@ -47,7 +47,7 @@ typedef struct MvContext { · 46 unmodified lines
4747 int aformat; ///< audio format
4848 } MvContext;
4949
50−/* these magic numbers are defined in moviefile.h on Silicon Grahpics IRIX */
50+/* these magic numbers are defined in moviefile.h on Silicon Graphics IRIX */
5151 #define MOVIE_SOUND 1
5252 #define MOVIE_SILENT 2
5353
libavformat/mxfdec.c+1−1
@@ -955,7 +955,7 @@ static int mxf_add_metadata_set(MXFContext *mxf, MXFMetadataSet **metadata_set, · 954 unmodified lines
955955 int ret;
956956
957957 // Index Table is special because it might be added manually without
958− // partition and we iterate thorugh all instances of them. Also some files
958+ // partition and we iterate through all instances of them. Also some files
959959 // use the same Instance UID for different index tables...
960960 if (type != IndexTableSegment) {
961961 for (int i = 0; i < mg->metadata_sets_count; i++) {
libavformat/mxfenc.c+1−1
@@ -1062,7 +1062,7 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF · 1061 unmodified lines
10621062 AVIOContext *pb = s->pb;
10631063
10641064 mxf_write_metadata_key(pb, 0x011100);
1065− PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16);
1065+ PRINT_KEY(s, "structural component key", pb->buf_ptr - 16);
10661066 klv_encode_ber_length(pb, 108);
10671067
10681068 // write uid
libavformat/nsvdec.c+1−1
@@ -72,7 +72,7 @@ · 71 unmodified lines
7272 * so the header seems to not be mandatory. (for streaming).
7373 *
7474 * index slice duration check (excepts nsvtrailer.nsv):
75− * 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
75+ * 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
7676 */
7777
7878 /*
libavformat/oggdec.h+3−3
@@ -43,7 +43,7 @@ struct ogg_codec { · 42 unmodified lines
4343 * @return < 0 (AVERROR) code or -1 on error
4444 * == 0 if the packet was a regular data packet.
4545 * == 1 if the packet was a header from a chained bitstream.
46− * This will cause the packet to be skiped in calling code (ogg_packet()
46+ * This will cause the packet to be skipped in calling code (ogg_packet()
4747 */
4848 int (*packet)(AVFormatContext *, int);
4949 /**
@@ -141,7 +141,7 @@ extern const struct ogg_codec ff_vp8_codec; · 91 unmodified lines
141141 /**
142142 * Parse Vorbis comments
143143 *
144− * @note The buffer will be temporarily modifed by this function,
144+ * @note The buffer will be temporarily modified by this function,
145145 * so it needs to be writable. Furthermore it must be padded
146146 * by a single byte (not counted in size).
147147 * All changes will have been reverted upon return.
@@ -152,7 +152,7 @@ int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, · 4 unmodified lines
152152 /**
153153 * Parse Vorbis comments and add metadata to an AVStream
154154 *
155− * @note The buffer will be temporarily modifed by this function,
155+ * @note The buffer will be temporarily modified by this function,
156156 * so it needs to be writable. Furthermore it must be padded
157157 * by a single byte (not counted in size).
158158 * All changes will have been reverted upon return.
libavformat/scd.c+1−1
@@ -52,7 +52,7 @@ typedef struct SCDOffsetTable { · 51 unmodified lines
5252
5353 typedef struct SCDHeader {
5454 uint64_t magic; /* SEDBSSCF */
55− uint32_t version; /* Verison number. We only know about 3. */
55+ uint32_t version; /* Version number. We only know about 3. */
5656 uint16_t unk1; /* Unknown, 260 in Drakengard 3, 1024 in FFXIV. */
5757 uint16_t header_size; /* Total size of this header. */
5858 uint32_t file_size; /* Is often 0, just ignore it. */
libavformat/segment.c+3−3
@@ -72,7 +72,7 @@ typedef struct SegmentContext { · 71 unmodified lines
7272 const AVClass *class; /**< Class for private options. */
7373 int segment_idx; ///< index of the segment file to write, starting from 0
7474 int segment_idx_wrap; ///< number after which the index wraps
75− int segment_idx_wrap_nb; ///< number of time the index has wraped
75+ int segment_idx_wrap_nb; ///< number of time the index has wrapped
7676 int segment_count; ///< number of segment files already written
7777 const AVOutputFormat *oformat;
7878 AVFormatContext *avf;
@@ -100,11 +100,11 @@ typedef struct SegmentContext { · 21 unmodified lines
100100
101101 char *times_str; ///< segment times specification string
102102 int64_t *times; ///< list of segment interval specification
103− int nb_times; ///< number of elments in the times array
103+ int nb_times; ///< number of elements in the times array
104104
105105 char *frames_str; ///< segment frame numbers specification string
106106 int *frames; ///< list of frame number specification
107− int nb_frames; ///< number of elments in the frames array
107+ int nb_frames; ///< number of elements in the frames array
108108 int frame_count; ///< total number of reference frames
109109 int segment_frame_count; ///< number of reference frames in the segment
110110
libavformat/srtdec.c+2−2
@@ -199,8 +199,8 @@ static int srt_read_header(AVFormatContext *s) · 198 unmodified lines
199199 }
200200
201201 /* Append the last event. Here we force the cache to be flushed, because a
202− * trailing number is more likely to be geniune (for example a copyright
203− * date) and not the event index of an inexistant event */
202+ * trailing number is more likely to be genuine (for example a copyright
203+ * date) and not the event index of an inexistent event */
204204 if (has_event_info) {
205205 res = add_event(&srt->q, &buf, line_cache, &ei, 1);
206206 if (res < 0)
libavformat/tls_openssl.c+1−1
@@ -878,7 +878,7 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** · 877 unmodified lines
878878 }
879879 }
880880
881− /* This seems to be neccesary despite explicitly setting client/server method above. */
881+ /* This seems to be necessary despite explicitly setting client/server method above. */
882882 if (c->listen)
883883 SSL_set_accept_state(p->ssl);
884884 else
libavformat/tls_schannel.c+1−1
@@ -1429,7 +1429,7 @@ static int tls_write(URLContext *h, const uint8_t *buf, int len) · 1428 unmodified lines
14291429
14301430 ret = tls_process_send_buffer(h);
14311431 if (ret == AVERROR(EAGAIN)) {
1432− /* We always need to signal that we consumed all (encryped) data since schannel must not
1432+ /* We always need to signal that we consumed all (encrypted) data since schannel must not
14331433 be fed the same data again. Sending will then be completed next call to this function,
14341434 and EAGAIN returned until all remaining buffer is sent. */
14351435 return outbuf[1].cbBuffer;
libavformat/ttaenc.c+1−1
@@ -71,7 +71,7 @@ static int tta_write_header(AVFormatContext *s) · 70 unmodified lines
7171 if ((ret = avio_open_dyn_buf(&tta->seek_table)) < 0)
7272 return ret;
7373
74− /* Ignore most extradata information if present. It can be innacurate
74+ /* Ignore most extradata information if present. It can be inaccurate
7575 if for example remuxing from Matroska */
7676 ffio_init_checksum(s->pb, ff_crcEDB88320_update, UINT32_MAX);
7777 ffio_init_checksum(tta->seek_table, ff_crcEDB88320_update, UINT32_MAX);
libavformat/udp.c+1−1
@@ -545,7 +545,7 @@ static void *circular_buffer_task_rx( void *_URLContext) · 544 unmodified lines
545545
546546 pthread_mutex_unlock(&s->mutex);
547547 /* Blocking operations are always cancellation points;
548− see "General Information" / "Thread Cancelation Overview"
548+ see "General Information" / "Thread Cancellation Overview"
549549 in Single Unix. */
550550 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old_cancelstate);
551551 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);
libavformat/wavenc.c+1−1
@@ -252,7 +252,7 @@ static int peak_write_chunk(AVFormatContext *s) · 251 unmodified lines
252252 WAVMuxContext *wav = s->priv_data;
253253 AVIOContext *pb = s->pb;
254254 AVCodecParameters *par = s->streams[0]->codecpar;
255− int64_t peak = ff_start_tag(s->pb, "levl");
255+ int64_t peak = ff_start_tag(s->pb, "levl"); // codespell:ignore
256256 int64_t now0;
257257 time_t now_secs;
258258 char timestamp[28];
libavformat/whip.c+1−1
@@ -258,7 +258,7 @@ typedef struct WHIPContext { · 257 unmodified lines
258258 int64_t whip_dtls_time;
259259 int64_t whip_srtp_time;
260260
261− /* The certificate and private key content used for DTLS hanshake */
261+ /* The certificate and private key content used for DTLS handshake */
262262 char cert_buf[MAX_CERTIFICATE_SIZE];
263263 char key_buf[MAX_CERTIFICATE_SIZE];
264264 /* The fingerprint of certificate, used in SDP offer. */
libavformat/wtvenc.c+1−1
@@ -575,7 +575,7 @@ static int write_root_table(AVFormatContext *s, int64_t sector_pos) · 574 unmodified lines
575575 }
576576 }
577577
578− // caculate root table size
578+ // calculate root table size
579579 size = avio_tell(pb) - sector_pos;
580580 pad = WTV_SECTOR_SIZE- size;
581581 write_pad(pb, pad);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t