diff options
author | Clément Bœsch <u@pkh.me> | 2016-06-21 22:55:20 +0300 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-06-21 22:55:34 +0300 |
commit | 8ef57a0d6154119e1a616dd8c29e8c32e35808a0 (patch) | |
tree | 26c51bc5d99260b44ba3a2585091ca764559f939 /libavformat | |
parent | 373b82066cd4d0c7f42af9b03e8cdc1085e1a6e5 (diff) | |
parent | 41ed7ab45fc693f7d7fc35664c0233f4c32d69bb (diff) |
Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'
* commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb':
cosmetics: Fix spelling mistakes
Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavformat')
74 files changed, 195 insertions, 195 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 2f2f6a6afc..8a50778686 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -1,6 +1,6 @@ /* * 4X Technologies .4xm File Demuxer (no muxer) - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/aea.c b/libavformat/aea.c index f4f1363f9b..f7954956c0 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@ -32,7 +32,7 @@ static int aea_read_probe(AVProbeData *p) if (p->buf_size <= 2048+212) return 0; - /* Magic is '00 08 00 00' in Little Endian*/ + /* Magic is '00 08 00 00' in little-endian*/ if (AV_RL32(p->buf)==0x800) { int ch, i; ch = p->buf[264]; diff --git a/libavformat/amr.c b/libavformat/amr.c index c113e92191..59963e14b8 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -1,6 +1,6 @@ /* * amr file format - * Copyright (c) 2001 ffmpeg project + * Copyright (c) 2001 FFmpeg project * * This file is part of FFmpeg. * @@ -121,7 +121,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR(EIO); } - // FIXME this is wrong, this should rather be in a AVParser + // FIXME this is wrong, this should rather be in an AVParser toc = avio_r8(s->pb); mode = (toc >> 3) & 0x0F; diff --git a/libavformat/asf.h b/libavformat/asf.h index 43288ddbaf..1a5b33840f 100644 --- a/libavformat/asf.h +++ b/libavformat/asf.h @@ -48,7 +48,7 @@ typedef struct ASFMainHeader { * invalid if broadcasting (could be ignored) */ uint32_t preroll; /**< timestamp of the first packet, in milliseconds * if nonzero - subtract from time */ - uint32_t ignore; ///< preroll is 64bit - but let's just ignore it + uint32_t ignore; ///< preroll is 64 bits - but let's just ignore it uint32_t flags; /**< 0x01 - broadcast * 0x02 - seekable * rest is reserved should be 0 */ diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 64be1b6e99..9eefa5afa5 100644 --- a/libavformat/asfdec_o.c +++ b/libavformat/asfdec_o.c @@ -121,8 +121,8 @@ typedef struct ASFContext { int stream_index; // from packet header, for the subpayload case - // packet parameteres - uint64_t sub_header_offset; // offset of subplayload header + // packet parameters + uint64_t sub_header_offset; // offset of subpayload header int64_t sub_dts; uint8_t dts_delta; // for subpayloads uint32_t packet_size_internal; // packet size stored inside ASFPacket, can be 0 diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index cfa4fadc07..88f01e0cfc 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -227,7 +227,7 @@ typedef struct ASFContext { const char *languages[128]; int nb_languages; int64_t creation_time; - /* non streamed additonnal info */ + /* non-streamed additional info */ uint64_t nb_packets; ///< how many packets are there in the file, invalid if broadcasting int64_t duration; ///< in 100ns units /* packet filling */ @@ -578,7 +578,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, } end_header(pb, hpos); - /* title and other infos */ + /* title and other info */ if (has_title) { int len; uint8_t *buf; diff --git a/libavformat/avc.c b/libavformat/avc.c index f7b8f38a00..094a95821f 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -106,7 +106,7 @@ int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) int ff_isom_write_avcc(AVIOContext *pb, const uint8_t *data, int len) { if (len > 6) { - /* check for h264 start code */ + /* check for H.264 start code */ if (AV_RB32(data) == 0x00000001 || AV_RB24(data) == 0x000001) { uint8_t *buf=NULL, *end, *start; diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 01d4a97ef6..38ea86dbb3 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -670,7 +670,7 @@ static int avi_read_header(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "crazy start time, iam scared, giving up\n"); ast->cum_len = 0; } - ast->sample_size = avio_rl32(pb); /* sample ssize */ + ast->sample_size = avio_rl32(pb); ast->cum_len *= FFMAX(1, ast->sample_size); av_log(s, AV_LOG_TRACE, "%"PRIu32" %"PRIu32" %d\n", ast->rate, ast->scale, ast->sample_size); diff --git a/libavformat/avio.h b/libavformat/avio.h index 23214031f1..3ea52ec86d 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -414,14 +414,14 @@ int avio_put_str16le(AVIOContext *s, const char *str); int avio_put_str16be(AVIOContext *s, const char *str); /** - * Passing this as the "whence" parameter to a seek function causes it to + * ORing this as the "whence" parameter to a seek function causes it to * return the filesize without seeking anywhere. Supporting this is optional. * If it is not supported then the seek function will return <0. */ #define AVSEEK_SIZE 0x10000 /** - * Oring this flag as into the "whence" parameter to a seek function causes it to + * Passing this flag as the "whence" parameter to a seek function causes it to * seek by any means (like reopening and linear reading) or other normally unreasonable * means that can be extremely slow. * This may be ignored by the seek code. diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 13a4cf9ab0..d6167fac92 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -1,6 +1,6 @@ /* * AviSynth/AvxSynth support - * Copyright (c) 2012 AvxSynth Team. + * Copyright (c) 2012 AvxSynth Team * * This file is part of FFmpeg * FFmpeg is free software; you can redistribute it and/or diff --git a/libavformat/avlanguage.h b/libavformat/avlanguage.h index 7fb8968810..84bef58ab8 100644 --- a/libavformat/avlanguage.h +++ b/libavformat/avlanguage.h @@ -26,7 +26,7 @@ */ enum AVLangCodespace { AV_LANG_ISO639_2_BIBL, /** 3-char bibliographic language codes as per ISO-IEC 639-2 */ - AV_LANG_ISO639_2_TERM, /** 3-char terminologic language codes as per ISO-IEC 639-2 */ + AV_LANG_ISO639_2_TERM, /** 3-char terminological language codes as per ISO-IEC 639-2 */ AV_LANG_ISO639_1 /** 2-char code of language as per ISO/IEC 639-1 */ }; diff --git a/libavformat/bink.c b/libavformat/bink.c index c3bf9674fb..c214eb3a69 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -264,7 +264,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) pkt->pts = bink->audio_pts[bink->current_track - 1]; /* Each audio packet reports the number of decompressed samples - (in bytes). We use this value to calcuate the audio PTS */ + (in bytes). We use this value to calculate the audio PTS */ if (pkt->size >= 4) bink->audio_pts[bink->current_track -1] += AV_RL32(pkt->data) / (2 * s->streams[bink->current_track]->codecpar->channels); diff --git a/libavformat/bmv.c b/libavformat/bmv.c index c9580a29fd..ac567c21eb 100644 --- a/libavformat/bmv.c +++ b/libavformat/bmv.c @@ -1,6 +1,6 @@ /* * Discworld II BMV demuxer - * Copyright (c) 2011 Konstantin Shishkov. + * Copyright (c) 2011 Konstantin Shishkov * * This file is part of FFmpeg. * diff --git a/libavformat/dump.c b/libavformat/dump.c index 8e97197e1a..bf61fdc1f7 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -393,7 +393,7 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent) dump_paramchange(ctx, &sd); break; case AV_PKT_DATA_H263_MB_INFO: - av_log(ctx, AV_LOG_INFO, "h263 macroblock info"); + av_log(ctx, AV_LOG_INFO, "H.263 macroblock info"); break; case AV_PKT_DATA_REPLAYGAIN: av_log(ctx, AV_LOG_INFO, "replaygain: "); diff --git a/libavformat/dv.c b/libavformat/dv.c index c689d9b100..89a9e10c14 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -110,11 +110,11 @@ static const int dv_audio_frequency[3] = { /* * There's a couple of assumptions being made here: - * 1. By default we silence erroneous (0x8000/16bit 0x800/12bit) audio samples. + * 1. By default we silence erroneous (0x8000/16-bit 0x800/12-bit) audio samples. * We can pass them upwards when libavcodec will be ready to deal with them. * 2. We don't do software emphasis. - * 3. Audio is always returned as 16bit linear samples: 12bit nonlinear samples - * are converted into 16bit linear ones. + * 3. Audio is always returned as 16-bit linear samples: 12-bit nonlinear samples + * are converted into 16-bit linear ones. */ static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm, const AVDVProfile *sys) @@ -130,7 +130,7 @@ static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm, smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */ freq = as_pack[4] >> 3 & 0x07; /* 0 - 48kHz, 1 - 44,1kHz, 2 - 32kHz */ - quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */ + quant = as_pack[4] & 0x07; /* 0 - 16-bit linear, 1 - 12-bit nonlinear */ if (quant > 1) return -1; /* unsupported quantization */ @@ -161,7 +161,7 @@ static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm, for (i = 0; i < sys->difseg_size; i++) { frame += 6 * 80; /* skip DIF segment header */ if (quant == 1 && i == half_ch) { - /* next stereo channel (12bit mode only) */ + /* next stereo channel (12-bit mode only) */ av_assert0(ipcm<4); pcm = ppcm[ipcm++]; if (!pcm) @@ -171,7 +171,7 @@ static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm, /* for each AV sequence */ for (j = 0; j < 9; j++) { for (d = 8; d < 80; d += 2) { - if (quant == 0) { /* 16bit quantization */ + if (quant == 0) { /* 16-bit quantization */ of = sys->audio_shuffle[i][j] + (d - 8) / 2 * sys->audio_stride; if (of * 2 >= size) @@ -184,7 +184,7 @@ static int dv_extract_audio(const uint8_t *frame, uint8_t **ppcm, if (pcm[of * 2 + 1] == 0x80 && pcm[of * 2] == 0x00) pcm[of * 2 + 1] = 0; - } else { /* 12bit quantization */ + } else { /* 12-bit quantization */ lc = ((uint16_t)frame[d] << 4) | ((uint16_t)frame[d + 2] >> 4); rc = ((uint16_t)frame[d + 1] << 4) | @@ -233,7 +233,7 @@ static int dv_extract_audio_info(DVDemuxContext *c, const uint8_t *frame) smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */ freq = as_pack[4] >> 3 & 0x07; /* 0 - 48kHz, 1 - 44,1kHz, 2 - 32kHz */ stype = as_pack[3] & 0x1f; /* 0 - 2CH, 2 - 4CH, 3 - 8CH */ - quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */ + quant = as_pack[4] & 0x07; /* 0 - 16-bit linear, 1 - 12-bit nonlinear */ if (freq >= FF_ARRAY_ELEMS(dv_audio_frequency)) { av_log(c->fctx, AV_LOG_ERROR, diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index 7ff2b729a0..422823c56f 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -41,7 +41,7 @@ #include "libavutil/opt.h" #include "libavutil/timecode.h" -#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio +#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32-bit audio struct DVMuxContext { AVClass *av_class; @@ -125,7 +125,7 @@ static int dv_write_pack(enum dv_pack_type pack_id, DVMuxContext *c, uint8_t* bu buf[4] = (1 << 7) | /* emphasis: 1 -- off */ (0 << 6) | /* emphasis time constant: 0 -- reserved */ (audio_type << 3) | /* frequency: 0 -- 48kHz, 1 -- 44,1kHz, 2 -- 32kHz */ - 0; /* quantization: 0 -- 16bit linear, 1 -- 12bit nonlinear */ + 0; /* quantization: 0 -- 16-bit linear, 1 -- 12-bit nonlinear */ va_end(ap); break; diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index b27da65801..80ce4c6e37 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -1,5 +1,5 @@ /* Electronic Arts Multimedia File Demuxer - * Copyright (c) 2004 The FFmpeg Project + * Copyright (c) 2004 The FFmpeg project * Copyright (c) 2006-2008 Peter Ross * * This file is part of FFmpeg. diff --git a/libavformat/flic.c b/libavformat/flic.c index 343b88852d..49f5d21f98 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -1,6 +1,6 @@ /* * FLI/FLC Animation File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 51c4cd6cec..8d9e87399d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -4,8 +4,8 @@ * * This demuxer will generate a 1 byte extradata for VP6F content. * It is composed of: - * - upper 4bits: difference between encoded width and visible width - * - lower 4bits: difference between encoded height and visible height + * - upper 4 bits: difference between encoded width and visible width + * - lower 4 bits: difference between encoded height and visible height * * This file is part of FFmpeg. * diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 0a40ded2bd..79951b59af 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -57,7 +57,7 @@ typedef struct GXFStreamContext { int pframes; int bframes; int p_per_gop; - int b_per_i_or_p; ///< number of B frames per I frame or P frame + int b_per_i_or_p; ///< number of B-frames per I-frame or P-frame int first_gop_closed; unsigned order; ///< interleaving order } GXFStreamContext; diff --git a/libavformat/httpauth.h b/libavformat/httpauth.h index 9c15a38097..0e7085901c 100644 --- a/libavformat/httpauth.h +++ b/libavformat/httpauth.h @@ -62,7 +62,7 @@ typedef struct HTTPAuthState { */ char realm[200]; /** - * The parameters specifiec to digest authentication. + * The parameters specific to digest authentication. */ DigestParams digest_params; /** diff --git a/libavformat/id3v2enc.c b/libavformat/id3v2enc.c index 781974128b..14de76ac06 100644 --- a/libavformat/id3v2enc.c +++ b/libavformat/id3v2enc.c @@ -84,7 +84,7 @@ static int id3v2_put_ttag(ID3v2EncContext *id3, AVIOContext *avioc, const char * len = avio_close_dyn_buf(dyn_buf, &pb); avio_wb32(avioc, tag); - /* ID3v2.3 frame size is not synchsafe */ + /* ID3v2.3 frame size is not sync-safe */ if (id3->version == 3) avio_wb32(avioc, len); else diff --git a/libavformat/idcin.c b/libavformat/idcin.c index 3900e9eddb..cf69102b24 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -1,6 +1,6 @@ /* * id Quake II CIN File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * @@ -33,7 +33,7 @@ * types. However, a CIN file does start with 5 32-bit numbers that * specify audio and video parameters. This demuxer gets around the lack * of file signature by performing sanity checks on those parameters. - * Probabalistically, this is a reasonable solution since the number of + * Probabilistically, this is a reasonable solution since the number of * valid combinations of the 5 parameters is a very small subset of the * total 160-bit number space. * diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c index fe8d5c6fe3..b66427968f 100644 --- a/libavformat/idroqdec.c +++ b/libavformat/idroqdec.c @@ -1,6 +1,6 @@ /* * id RoQ (.roq) File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/internal.h b/libavformat/internal.h index b6c2020386..99015271b6 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -564,7 +564,7 @@ int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char * /* * A wrapper around AVFormatContext.io_close that should be used - * intead of calling the pointer directly. + * instead of calling the pointer directly. */ void ff_format_io_close(AVFormatContext *s, AVIOContext **pb); diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index bb34aae749..f9ab3e0d57 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -1,6 +1,6 @@ /* * Interplay MVE File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/isom.c b/libavformat/isom.c index 9a6526817d..d412f06259 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -38,15 +38,15 @@ const AVCodecTag ff_mp4_obj_type[] = { { AV_CODEC_ID_HEVC , 0x23 }, { AV_CODEC_ID_AAC , 0x40 }, { AV_CODEC_ID_MP4ALS , 0x40 }, /* 14496-3 ALS */ - { AV_CODEC_ID_MPEG2VIDEO , 0x61 }, /* MPEG2 Main */ - { AV_CODEC_ID_MPEG2VIDEO , 0x60 }, /* MPEG2 Simple */ - { AV_CODEC_ID_MPEG2VIDEO , 0x62 }, /* MPEG2 SNR */ - { AV_CODEC_ID_MPEG2VIDEO , 0x63 }, /* MPEG2 Spatial */ - { AV_CODEC_ID_MPEG2VIDEO , 0x64 }, /* MPEG2 High */ - { AV_CODEC_ID_MPEG2VIDEO , 0x65 }, /* MPEG2 422 */ - { AV_CODEC_ID_AAC , 0x66 }, /* MPEG2 AAC Main */ - { AV_CODEC_ID_AAC , 0x67 }, /* MPEG2 AAC Low */ - { AV_CODEC_ID_AAC , 0x68 }, /* MPEG2 AAC SSR */ + { AV_CODEC_ID_MPEG2VIDEO , 0x61 }, /* MPEG-2 Main */ + { AV_CODEC_ID_MPEG2VIDEO , 0x60 }, /* MPEG-2 Simple */ + { AV_CODEC_ID_MPEG2VIDEO , 0x62 }, /* MPEG-2 SNR */ + { AV_CODEC_ID_MPEG2VIDEO , 0x63 }, /* MPEG-2 Spatial */ + { AV_CODEC_ID_MPEG2VIDEO , 0x64 }, /* MPEG-2 High */ + { AV_CODEC_ID_MPEG2VIDEO , 0x65 }, /* MPEG-2 422 */ + { AV_CODEC_ID_AAC , 0x66 }, /* MPEG-2 AAC Main */ + { AV_CODEC_ID_AAC , 0x67 }, /* MPEG-2 AAC Low */ + { AV_CODEC_ID_AAC , 0x68 }, /* MPEG-2 AAC SSR */ { AV_CODEC_ID_MP3 , 0x69 }, /* 13818-3 */ { AV_CODEC_ID_MP2 , 0x69 }, /* 11172-3 */ { AV_CODEC_ID_MPEG1VIDEO , 0x6A }, /* 11172-2 */ @@ -59,10 +59,10 @@ const AVCodecTag ff_mp4_obj_type[] = { { AV_CODEC_ID_AC3 , 0xA5 }, { AV_CODEC_ID_EAC3 , 0xA6 }, { AV_CODEC_ID_DTS , 0xA9 }, /* mp4ra.org */ - { AV_CODEC_ID_VP9 , 0xC0 }, /* non standard, update when there is a standard value */ - { AV_CODEC_ID_TSCC2 , 0xD0 }, /* non standard, camtasia uses it */ - { AV_CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */ - { AV_CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */ + { AV_CODEC_ID_VP9 , 0xC0 }, /* nonstandard, update when there is a standard value */ + { AV_CODEC_ID_TSCC2 , 0xD0 }, /* nonstandard, camtasia uses it */ + { AV_CODEC_ID_VORBIS , 0xDD }, /* nonstandard, gpac uses it */ + { AV_CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* nonstandard, see unsupported-embedded-subs-2.mp4 */ { AV_CODEC_ID_QCELP , 0xE1 }, { AV_CODEC_ID_MPEG4SYSTEMS, 0x01 }, { AV_CODEC_ID_MPEG4SYSTEMS, 0x02 }, @@ -72,10 +72,10 @@ const AVCodecTag ff_mp4_obj_type[] = { const AVCodecTag ff_codec_movvideo_tags[] = { /* { AV_CODEC_ID_, MKTAG('I', 'V', '5', '0') }, *//* Indeo 5.0 */ - { AV_CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* Uncompressed RGB */ - { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* Uncompressed YUV422 */ - { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* UNCOMPRESSED 8BIT 4:2:2 */ - { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2vuy but byte swapped */ + { AV_CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* uncompressed RGB */ + { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */ + { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */ + { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */ { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') }, { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') }, @@ -94,18 +94,18 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_RAWVIDEO, MKTAG('R', '4', '2', '0') }, /* Radius DV YUV PAL */ { AV_CODEC_ID_RAWVIDEO, MKTAG('R', '4', '1', '1') }, /* Radius DV YUV NTSC */ - { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* UNCOMPRESSED 10BIT RGB */ - { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* UNCOMPRESSED 10BIT RGB */ - { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* UNCOMPRESSED 10BIT RGB */ + { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* uncompressed 10-bit RGB */ + { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* uncompressed 10-bit RGB */ + { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* uncompressed 10-bit RGB */ { AV_CODEC_ID_AVUI, MKTAG('A', 'V', 'U', 'I') }, /* AVID Uncompressed deinterleaved UYVY422 */ { AV_CODEC_ID_AVRP, MKTAG('A', 'V', 'r', 'p') }, /* Avid 1:1 10-bit RGB Packer */ { AV_CODEC_ID_AVRP, MKTAG('S', 'U', 'D', 'S') }, /* Avid DS Uncompressed */ - { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* UNCOMPRESSED 10BIT 4:2:2 */ - { AV_CODEC_ID_V210, MKTAG('b', 'x', 'y', '2') }, /* BOXX 10BIT 4:2:2 */ - { AV_CODEC_ID_V308, MKTAG('v', '3', '0', '8') }, /* UNCOMPRESSED 8BIT 4:4:4 */ - { AV_CODEC_ID_V408, MKTAG('v', '4', '0', '8') }, /* UNCOMPRESSED 8BIT 4:4:4:4 */ - { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* UNCOMPRESSED 10BIT 4:4:4 */ - { AV_CODEC_ID_Y41P, MKTAG('Y', '4', '1', 'P') }, /* UNCOMPRESSED 12BIT 4:1:1 */ + { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* uncompressed 10-bit 4:2:2 */ + { AV_CODEC_ID_V210, MKTAG('b', 'x', 'y', '2') }, /* BOXX 10-bit 4:2:2 */ + { AV_CODEC_ID_V308, MKTAG('v', '3', '0', '8') }, /* uncompressed 8-bit 4:4:4 */ + { AV_CODEC_ID_V408, MKTAG('v', '4', '0', '8') }, /* uncompressed 8-bit 4:4:4:4 */ + { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* uncompressed 10-bit 4:4:4 */ + { AV_CODEC_ID_Y41P, MKTAG('Y', '4', '1', 'P') }, /* uncompressed 12-bit 4:1:1 */ { AV_CODEC_ID_YUV4, MKTAG('y', 'u', 'v', '4') }, /* libquicktime packed yuv420p */ { AV_CODEC_ID_TARGA_Y216, MKTAG('Y', '2', '1', '6') }, @@ -126,8 +126,8 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, { AV_CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') }, /* experimental: 3IVX files before ivx D4 4.5.1 */ - { AV_CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H263 */ - { AV_CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H263 ?? works */ + { AV_CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H.263 */ + { AV_CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H.263 ?? works */ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 'p') }, /* DV PAL */ { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') }, /* DV NTSC */ @@ -177,7 +177,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '5') }, /* AVC-Intra 100M 1080i50 */ { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '6') }, /* AVC-Intra 100M 1080i60 */ { AV_CODEC_ID_H264, MKTAG('A', 'V', 'i', 'n') }, /* AVC-Intra with implicit SPS/PPS */ - { AV_CODEC_ID_H264, MKTAG('a', 'i', 'v', 'x') }, /* XAVC 4:2:2 10bit */ + { AV_CODEC_ID_H264, MKTAG('a', 'i', 'v', 'x') }, /* XAVC 10-bit 4:2:2 */ { AV_CODEC_ID_H264, MKTAG('r', 'v', '6', '4') }, /* X-Com Radvision */ { AV_CODEC_ID_VP9, MKTAG('v', 'p', '0', '9') }, /* VP9 */ @@ -187,22 +187,22 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'e', 'g') }, /* MPEG */ { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', '1', 'v') }, /* CoreMedia CMVideoCodecType */ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', '2', 'v', '1') }, /* Apple MPEG-2 Camcorder */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG2 HDV 720p30 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG2 HDV 1080i60 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG2 HDV 1080i50 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG2 HDV 720p24 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG2 HDV 720p25 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG2 HDV 1080p24 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG2 HDV 1080p25 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG2 HDV 1080p30 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG2 HDV 720p60 JVC */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG2 HDV 720p50 */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG2 IMX NTSC 525/60 50mb/s produced by FCP */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG2 IMX PAL 625/50 50mb/s produced by FCP */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG2 IMX NTSC 525/60 40mb/s produced by FCP */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG2 IMX PAL 625/50 40mb/s produced by FCP */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG2 IMX NTSC 525/60 30mb/s produced by FCP */ - { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG2 IMX PAL 625/50 30mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG-2 HDV 720p30 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG-2 HDV 1080i60 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG-2 HDV 1080i50 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG-2 HDV 720p24 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG-2 HDV 720p25 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG-2 HDV 1080p24 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG-2 HDV 1080p25 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG-2 HDV 1080p30 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG-2 HDV 720p60 JVC */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG-2 HDV 720p50 */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG-2 IMX NTSC 525/60 50mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG-2 IMX PAL 625/50 50mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG-2 IMX NTSC 525/60 40mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG-2 IMX PAL 625/50 40mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG-2 IMX NTSC 525/60 30mb/s produced by FCP */ + { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG-2 IMX PAL 625/50 30mb/s produced by FCP */ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '1') }, /* XDCAM HD422 720p30 CBR */ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '4') }, /* XDCAM HD422 720p24 CBR */ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '5') }, /* XDCAM HD422 720p25 CBR */ @@ -357,7 +357,7 @@ const AVCodecTag ff_codec_movsubtitle_tags[] = { /* map numeric codes from mdhd atom to ISO 639 */ /* cf. QTFileFormat.pdf p253, qtff.pdf p205 */ /* http://developer.apple.com/documentation/mac/Text/Text-368.html */ -/* deprecated by putting the code as 3*5bit ascii */ +/* deprecated by putting the code as 3*5 bits ASCII */ static const char mov_mdhd_language_map[][4] = { /* 0-9 */ "eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor", @@ -395,7 +395,7 @@ int ff_mov_iso639_to_lang(const char lang[4], int mp4) /* handle undefined as such */ if (lang[0] == '\0') lang = "und"; - /* 5bit ascii */ + /* 5 bits ASCII */ for (i = 0; i < 3; i++) { uint8_t c = lang[i]; c -= 0x60; @@ -447,7 +447,7 @@ int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag) int len; *tag = avio_r8(pb); len = ff_mp4_read_descr_len(pb); - av_log(fc, AV_LOG_TRACE, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len); + av_log(fc, AV_LOG_TRACE, "MPEG-4 description: tag=0x%02x len=%d\n", *tag, len); return len; } @@ -499,7 +499,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext av_log(fc, AV_LOG_TRACE, "esds object type id 0x%02x\n", object_type_id); len = ff_mp4_read_descr(fc, pb, &tag); if (tag == MP4DecSpecificDescrTag) { - av_log(fc, AV_LOG_TRACE, "Specific MPEG4 header len=%d\n", len); + av_log(fc, AV_LOG_TRACE, "Specific MPEG-4 header len=%d\n", len); if (!len || (uint64_t)len > (1<<30)) return -1; av_free(st->codecpar->extradata); diff --git a/libavformat/matroska.c b/libavformat/matroska.c index faa662d09f..c592fb0ce3 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -1,6 +1,6 @@ /* * Matroska common data - * Copyright (c) 2003-2004 The FFmpeg Project + * Copyright (c) 2003-2004 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/matroska.h b/libavformat/matroska.h index e427c0ec99..1ff76e6667 100644 --- a/libavformat/matroska.h +++ b/libavformat/matroska.h @@ -1,6 +1,6 @@ /* * Matroska constants - * Copyright (c) 2003-2004 The FFmpeg Project + * Copyright (c) 2003-2004 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/mms.c b/libavformat/mms.c index 807aadef0f..17fa76a8d4 100644 --- a/libavformat/mms.c +++ b/libavformat/mms.c @@ -97,7 +97,7 @@ int ff_mms_asf_header_parser(MMSContext *mms) flags = AV_RL16(p + sizeof(ff_asf_guid)*3 + 24); stream_id = flags & 0x7F; //The second condition is for checking CS_PKT_STREAM_ID_REQUEST packet size, - //we can calcuate the packet size by stream_num. + //we can calculate the packet size by stream_num. //Please see function send_stream_selection_request(). if (mms->stream_num < MMS_MAX_STREAMS && 46 + mms->stream_num * 6 < sizeof(mms->out_buffer)) { diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index b359da551e..d18e2d8061 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -41,7 +41,7 @@ // see Ref 2.2.1.8 #define USERAGENT "User-Agent: NSPlayer/4.1.0.3856\r\n" // see Ref 2.2.1.4.33 -// the guid value can be changed to any valid value. +// the GUID value can be changed to any valid value. #define CLIENTGUID "Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}\r\n" // see Ref 2.2.3 for packet type define: diff --git a/libavformat/mmst.c b/libavformat/mmst.c index 1d13959f58..a97c2e04a2 100644 --- a/libavformat/mmst.c +++ b/libavformat/mmst.c @@ -427,7 +427,7 @@ static int send_startup_packet(MMSTContext *mmst) int ret; MMSContext *mms = &mmst->mms; // SubscriberName is defined in MS specification linked below. - // The guid value can be any valid value. + // The GUID value can be any valid value. // http://download.microsoft.com/ // download/9/5/E/95EF66AF-9026-4BB0-A41D-A4F81802D92C/%5BMS-WMSP%5D.pdf snprintf(data_string, sizeof(data_string), @@ -524,7 +524,7 @@ static int mms_open(URLContext *h, const char *uri, int flags) sizeof(mmst->path), uri); if(port<0) - port = 1755; // defaut mms protocol port + port = 1755; // default MMS protocol port // establish tcp connection. ff_url_join(tcpname, sizeof(tcpname), "tcp", NULL, mmst->host, port, NULL); diff --git a/libavformat/mov.c b/libavformat/mov.c index 3d59c0f5ee..ff41358dc6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1397,7 +1397,7 @@ static int64_t mov_read_atom_into_extradata(MOVContext *c, AVIOContext *pb, MOVA return result; } -/* FIXME modify qdm2/svq3/h264 decoders to take full atom as extradata */ +/* FIXME modify QDM2/SVQ3/H.264 decoders to take full atom as extradata */ static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom, enum AVCodecID codec_id) { @@ -1769,7 +1769,7 @@ static int mov_codec_id(AVStream *st, uint32_t format) if (st->codecpar->codec_type != AVMEDIA_TYPE_VIDEO && id > 0) { st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; } else if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO && - /* skip old asf mpeg4 tag */ + /* skip old ASF MPEG-4 tag */ format && format != MKTAG('m','p','4','s')) { id = ff_codec_get_id(ff_codec_movvideo_tags, format); if (id <= 0) @@ -1831,7 +1831,7 @@ static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb, st->codecpar->width &= ~1; st->codecpar->height &= ~1; } - /* Flash Media Server uses tag H263 with Sorenson Spark */ + /* Flash Media Server uses tag H.263 with Sorenson Spark */ if (st->codecpar->codec_tag == MKTAG('H','2','6','3') && !memcmp(codec_name, "Sorenson H263", 13)) st->codecpar->codec_id = AV_CODEC_ID_FLV1; diff --git a/libavformat/movenc-test.c b/libavformat/movenc-test.c index e7928a6c6a..6c7f0f6ab2 100644 --- a/libavformat/movenc-test.c +++ b/libavformat/movenc-test.c @@ -349,7 +349,7 @@ int main(int argc, char **argv) finish(); close_out(); - // Write a similar file, but with b-frames and audio preroll, handled + // Write a similar file, but with B-frames and audio preroll, handled // via an edit list. init_out("non-empty-moov-elst"); av_dict_set(&opts, "movflags", "frag_keyframe", 0); @@ -359,7 +359,7 @@ int main(int argc, char **argv) finish(); close_out(); - // Use b-frames but no audio-preroll, but without an edit list. + // Use B-frames but no audio-preroll, but without an edit list. // Due to avoid_negative_ts == AVFMT_AVOID_NEG_TS_MAKE_ZERO, the dts // of the first audio packet is > 0, but it is set to zero since edit // lists aren't used, increasing the duration of the first packet instead. @@ -372,7 +372,7 @@ int main(int argc, char **argv) close_out(); format = "ismv"; - // Write an ISMV, with b-frames and audio preroll. + // Write an ISMV, with B-frames and audio preroll. init_out("ismv"); av_dict_set(&opts, "movflags", "frag_keyframe", 0); init(1, 1); @@ -558,7 +558,7 @@ int main(int argc, char **argv) finish(); - // Test discontinously written fragments with b-frames (where the + // Test discontinuously written fragments with B-frames (where the // assumption of starting at pts=0 works) but not with audio preroll // (which can't be guessed). av_dict_set(&opts, "movflags", "frag_custom+delay_moov+dash", 0); @@ -592,7 +592,7 @@ int main(int argc, char **argv) finish(); - // Test discontinously written fragments with b-frames and audio preroll, + // Test discontinuously written fragments with B-frames and audio preroll, // properly signaled. av_dict_set(&opts, "movflags", "frag_custom+delay_moov+dash", 0); init(1, 1); diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 837e1e5fa3..d4b5dc3931 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2561,7 +2561,7 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVMuxContext *mov, /* In the positive delay case, the delay includes the cts * offset, and the second edit list entry below trims out * the same amount from the actual content. This makes sure - * that the offsetted last sample is included in the edit + * that the offset last sample is included in the edit * list duration as well. */ if (version == 1) { avio_wb64(pb, delay); @@ -4512,8 +4512,8 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) av_log(s, AV_LOG_WARNING, "aac bitstream error\n"); } if (par->codec_id == AV_CODEC_ID_H264 && trk->vos_len > 0 && *(uint8_t *)trk->vos_data != 1 && !TAG_IS_AVCI(trk->tag)) { - /* from x264 or from bytestream h264 */ - /* nal reformating needed */ + /* from x264 or from bytestream H.264 */ + /* NAL reformatting needed */ if (trk->hint_track >= 0 && trk->hint_track < mov->nb_streams) { ff_avc_parse_nal_units_buf(pkt->data, &reformatted_data, &size); diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index c83c02681a..1c441c54d8 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -1,5 +1,5 @@ /* - * MPEG1/2 demuxer + * MPEG-1/2 demuxer * Copyright (c) 2000, 2001, 2002 Fabrice Bellard * * This file is part of FFmpeg. @@ -371,7 +371,7 @@ redo: goto error_redo; c = avio_r8(s->pb); len--; - /* XXX: for mpeg1, should test only bit 7 */ + /* XXX: for MPEG-1, should test only bit 7 */ if (c != 0xff) break; } diff --git a/libavformat/mpeg.h b/libavformat/mpeg.h index b43517c30a..617e36cba8 100644 --- a/libavformat/mpeg.h +++ b/libavformat/mpeg.h @@ -1,5 +1,5 @@ /* - * MPEG1/2 muxer and demuxer common defines + * MPEG-1/2 muxer and demuxer common defines * Copyright (c) 2000, 2001, 2002 Fabrice Bellard * * This file is part of FFmpeg. diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 358031d83d..878fa6381f 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1,5 +1,5 @@ /* - * MPEG1/2 muxer + * MPEG-1/2 muxer * Copyright (c) 2000, 2001, 2002 Fabrice Bellard * * This file is part of FFmpeg. @@ -151,7 +151,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf, put_bits(&pb, 1, 1); } else { put_bits(&pb, 1, 0); /* variable bitrate */ - put_bits(&pb, 1, 0); /* non constrainted bit stream */ + put_bits(&pb, 1, 0); /* nonconstrained bitstream */ } if (s->is_vcd || s->is_dvd) { @@ -1190,7 +1190,7 @@ static int mpeg_mux_end(AVFormatContext *ctx) break; } - /* End header according to MPEG1 systems standard. We do not write + /* End header according to MPEG-1 systems standard. We do not write * it as it is usually not needed by decoders and because it * complicates MPEG stream concatenation. */ // avio_wb32(ctx->pb, ISO_11172_END_CODE); diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 6ce169e709..b31d233642 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1,5 +1,5 @@ /* - * MPEG2 transport stream (aka DVB) demuxer + * MPEG-2 transport stream (aka DVB) demuxer * Copyright (c) 2002-2003 Fabrice Bellard * * This file is part of FFmpeg. @@ -38,8 +38,8 @@ #include "mpeg.h" #include "isom.h" -/* maximum size in which we look for synchronisation if - * synchronisation is lost */ +/* maximum size in which we look for synchronization if + * synchronization is lost */ #define MAX_RESYNC_SIZE 65536 #define MAX_PES_PAYLOAD 200 * 1024 @@ -1031,7 +1031,7 @@ static int mpegts_push_data(MpegTSFilter *filter, * decide */ if (pes->header[0] == 0x00 && pes->header[1] == 0x00 && pes->header[2] == 0x01) { - /* it must be an mpeg2 PES stream */ + /* it must be an MPEG-2 PES stream */ code = pes->header[3] | 0x100; av_log(pes->stream, AV_LOG_TRACE, "pid=%x pes_code=%#x\n", pes->pid, code); diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h index 88b504d955..272e2be4f7 100644 --- a/libavformat/mpegts.h +++ b/libavformat/mpegts.h @@ -1,5 +1,5 @@ /* - * MPEG2 transport stream defines + * MPEG-2 transport stream defines * Copyright (c) 2003 Fabrice Bellard * * This file is part of FFmpeg. diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 93cbac1d00..f8cd801470 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -1,5 +1,5 @@ /* - * MPEG2 transport stream (aka DVB) muxer + * MPEG-2 transport stream (aka DVB) muxer * Copyright (c) 2003 Fabrice Bellard * * This file is part of FFmpeg. @@ -49,7 +49,7 @@ typedef struct MpegTSSection { } MpegTSSection; typedef struct MpegTSService { - MpegTSSection pmt; /* MPEG2 pmt table context */ + MpegTSSection pmt; /* MPEG-2 PMT table context */ int sid; /* service ID */ char *name; char *provider_name; @@ -72,8 +72,8 @@ enum { }; typedef struct MpegTSWrite { const AVClass *av_class; - MpegTSSection pat; /* MPEG2 pat table */ - MpegTSSection sdt; /* MPEG2 sdt table context */ + MpegTSSection pat; /* MPEG-2 PAT table */ + MpegTSSection sdt; /* MPEG-2 SDT table context */ MpegTSService **services; int sdt_packet_count; int sdt_packet_period; @@ -1002,7 +1002,7 @@ fail: return ret; } -/* send SDT, PAT and PMT tables regulary */ +/* send SDT, PAT and PMT tables regularly */ static void retransmit_si_info(AVFormatContext *s, int force_pat, int64_t dts) { MpegTSWrite *ts = s->priv_data; diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 4d77ada71e..e9c48e8d7f 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -41,7 +41,7 @@ const MXFCodecUL ff_mxf_codec_uls[] = { { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* 422P@HL I-Frame */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x20,0x02,0x03 }, 14, AV_CODEC_ID_MPEG4 }, /* XDCAM proxy_pal030926.mxf */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x02,0x01,0x02,0x00 }, 13, AV_CODEC_ID_DVVIDEO }, /* DV25 IEC PAL */ - { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */ + { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG 2000 code stream */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x01,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 SP@LL */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x02,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 SP@ML */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x03,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 MP@LL */ @@ -52,8 +52,8 @@ const MXFCodecUL ff_mxf_codec_uls[] = { { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x08,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 AP@L2 */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x09,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 AP@L3 */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x04,0x0A,0x00,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC1 AP@L4 */ - { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed */ - { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }, 15, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed 422 8-bit */ + { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO }, /* uncompressed */ + { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }, 15, AV_CODEC_ID_RAWVIDEO }, /* uncompressed 422 8-bit */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x71,0x00,0x00,0x00 }, 13, AV_CODEC_ID_DNXHD }, /* SMPTE VC-3/DNxHD */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x03,0x02,0x00,0x00 }, 14, AV_CODEC_ID_DNXHD }, /* SMPTE VC-3/DNxHD */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0E,0x04,0x02,0x01,0x02,0x04,0x01,0x00 }, 16, AV_CODEC_ID_DNXHD }, /* SMPTE VC-3/DNxHD Legacy Avid Media Composer MXF */ @@ -62,8 +62,8 @@ const MXFCodecUL ff_mxf_codec_uls[] = { { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x01 }, 16, AV_CODEC_ID_V210 }, /* V210 */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0E,0x04,0x02,0x01,0x02,0x11,0x00,0x00 }, 14, AV_CODEC_ID_PRORES }, /* Avid MC7 ProRes */ /* SoundEssenceCompression */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x03,0x04,0x02,0x02,0x02,0x03,0x03,0x01,0x00 }, 14, AV_CODEC_ID_AAC }, /* MPEG2 AAC ADTS (legacy) */ - { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, /* Uncompressed */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x03,0x04,0x02,0x02,0x02,0x03,0x03,0x01,0x00 }, 14, AV_CODEC_ID_AAC }, /* MPEG-2 AAC ADTS (legacy) */ + { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, /* uncompressed */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x02,0x02,0x01,0x7E,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16BE }, /* From Omneon MXF file */ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x04,0x04,0x02,0x02,0x02,0x03,0x01,0x01,0x00 }, 15, AV_CODEC_ID_PCM_ALAW }, /* XDCAM Proxy C0023S01.mxf */ diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 9bf676ca67..0affca97a2 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -592,7 +592,7 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size partition->previous_partition); } - /* some files don'thave FooterPartition set in every partition */ + /* some files don't have FooterPartition set in every partition */ if (footer_partition) { if (mxf->footer_partition && mxf->footer_partition != footer_partition) { av_log(mxf->fc, AV_LOG_ERROR, @@ -1123,12 +1123,12 @@ static void *mxf_resolve_strong_ref(MXFContext *mxf, UID *strong_ref, enum MXFMe static const MXFCodecUL mxf_picture_essence_container_uls[] = { // video essence container uls { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x0d,0x01,0x03,0x01,0x02,0x0c,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x10,0x60,0x01 }, 14, AV_CODEC_ID_H264 }, /* H264 Frame wrapped */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x12,0x01,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC-1 Frame wrapped */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x04,0x60,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MPEG-ES Frame wrapped */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x10,0x60,0x01 }, 14, AV_CODEC_ID_H264 }, /* H.264 frame wrapped */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x12,0x01,0x00 }, 14, AV_CODEC_ID_VC1 }, /* VC-1 frame wrapped */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x04,0x60,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MPEG-ES frame wrapped */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x01,0x04,0x01 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* Type D-10 mapping of 40Mbps 525/60-I */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x02,0x41,0x01 }, 14, AV_CODEC_ID_DVVIDEO }, /* DV 625 25mbps */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed Picture */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, AV_CODEC_ID_RAWVIDEO }, /* uncompressed picture */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0a,0x0e,0x0f,0x03,0x01,0x02,0x20,0x01,0x01 }, 15, AV_CODEC_ID_HQ_HQA }, { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0a,0x0e,0x0f,0x03,0x01,0x02,0x20,0x02,0x01 }, 15, AV_CODEC_ID_HQX }, { { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0xff,0x4b,0x46,0x41,0x41,0x00,0x0d,0x4d,0x4f }, 14, AV_CODEC_ID_RAWVIDEO }, /* Legacy ?? Uncompressed Picture */ @@ -1137,14 +1137,14 @@ static const MXFCodecUL mxf_picture_essence_container_uls[] = { /* EC ULs for intra-only formats */ static const MXFCodecUL mxf_intra_only_essence_container_uls[] = { - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x01,0x00,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MXF-GC SMPTE D-10 Mappings */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x01,0x00,0x00 }, 14, AV_CODEC_ID_MPEG2VIDEO }, /* MXF-GC SMPTE D-10 mappings */ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE }, }; /* intra-only PictureEssenceCoding ULs, where no corresponding EC UL exists */ static const MXFCodecUL mxf_intra_only_picture_essence_coding_uls[] = { { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x32,0x00,0x00 }, 14, AV_CODEC_ID_H264 }, /* H.264/MPEG-4 AVC Intra Profiles */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG 2000 code stream */ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE }, }; @@ -1163,7 +1163,7 @@ static const MXFCodecUL mxf_sound_essence_container_uls[] = { { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x02,0x0d,0x01,0x03,0x01,0x02,0x04,0x40,0x01 }, 14, AV_CODEC_ID_MP2 }, /* MPEG-ES Frame wrapped, 0x40 ??? stream id */ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x01,0x01,0x01 }, 14, AV_CODEC_ID_PCM_S16LE }, /* D-10 Mapping 50Mbps PAL Extended Template */ { { 0x06,0x0e,0x2b,0x34,0x01,0x01,0x01,0xff,0x4b,0x46,0x41,0x41,0x00,0x0d,0x4d,0x4F }, 14, AV_CODEC_ID_PCM_S16LE }, /* 0001GL00.MXF.A1.mxf_opatom.mxf */ - { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x03,0x04,0x02,0x02,0x02,0x03,0x03,0x01,0x00 }, 14, AV_CODEC_ID_AAC }, /* MPEG2 AAC ADTS (legacy) */ + { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x03,0x04,0x02,0x02,0x02,0x03,0x03,0x01,0x00 }, 14, AV_CODEC_ID_AAC }, /* MPEG-2 AAC ADTS (legacy) */ { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE }, }; diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 36a43e4a41..0c04a396cc 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1496,7 +1496,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) for (i = 0; i < mxf->edit_units_count; i++) { int temporal_offset = 0; - if (!(mxf->index_entries[i].flags & 0x33)) { // I frame + if (!(mxf->index_entries[i].flags & 0x33)) { // I-frame mxf->last_key_index = key_index; key_index = i; } @@ -1523,7 +1523,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) mxf->last_key_index = key_index; } - if (!(mxf->index_entries[i].flags & 0x33) && // I frame + if (!(mxf->index_entries[i].flags & 0x33) && // I-frame mxf->index_entries[i].flags & 0x40 && !temporal_offset) mxf->index_entries[i].flags |= 0x80; // random access avio_w8(pb, mxf->index_entries[i].flags); @@ -1976,10 +1976,10 @@ static int mxf_parse_mpeg2_frame(AVFormatContext *s, AVStream *st, } else if (c == 0x100) { // pic int pict_type = (pkt->data[i+2]>>3) & 0x07; e->temporal_ref = (pkt->data[i+1]<<2) | (pkt->data[i+2]>>6); - if (pict_type == 2) { // P frame + if (pict_type == 2) { // P-frame e->flags |= 0x22; - sc->closed_gop = 0; // reset closed gop, don't matter anymore - } else if (pict_type == 3) { // B frame + sc->closed_gop = 0; // reset closed GOP, don't matter anymore + } else if (pict_type == 3) { // B-frame if (sc->closed_gop) e->flags |= 0x13; // only backward prediction else @@ -2447,7 +2447,7 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt) if (st->index == 0) { if (!mxf->edit_unit_byte_count && (!mxf->edit_units_count || mxf->edit_units_count > EDIT_UNITS_PER_BODY) && - !(ie.flags & 0x33)) { // I frame, Gop start + !(ie.flags & 0x33)) { // I-frame, GOP start mxf_write_klv_fill(s); if ((err = mxf_write_partition(s, 1, 2, body_partition_key, 0)) < 0) return err; diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 7f892973cc..507fb396a5 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -57,14 +57,14 @@ * (that is the offset of the data table after the header). * After checking all samples from (S1) all confirms this. * - * Then, about NSVf[12-15], faster.nsf has 179700. When veiwing it in VLC, + * Then, about NSVf[12-15], faster.nsf has 179700. When viewing it in VLC, * I noticed there was about 1 NVSs chunk/s, so I ran * strings faster.nsv | grep NSVs | wc -l * which gave me 180. That leads me to think that NSVf[12-15] might be the * file length in milliseconds. * Let's try that: * for f in *.nsv; do HTIME="$(od -t x4 "$f" | head -1 | sed 's/.* //')"; echo "'$f' $((0x$HTIME))s = $((0x$HTIME/1000/60)):$((0x$HTIME/1000%60))"; done - * except for nstrailer (which doesn't have an NSVf header), it repports correct time. + * except for nsvtrailer (which doesn't have an NSVf header), it reports correct time. * * nsvtrailer.nsv (S1) does not have any NSVf header, only NSVs chunks, * so the header seems to not be mandatory. (for streaming). @@ -579,7 +579,7 @@ null_chunk_retry: ((auxtag >> 24) & 0x0ff), auxsize); avio_skip(pb, auxsize); - vsize -= auxsize + sizeof(uint16_t) + sizeof(uint32_t); /* that's becoming braindead */ + vsize -= auxsize + sizeof(uint16_t) + sizeof(uint32_t); /* that's becoming brain-dead */ } if (avio_feof(pb)) @@ -683,7 +683,7 @@ static int nsv_read_packet(AVFormatContext *s, AVPacket *pkt) } } - /* this restaurant is not approvisionned :^] */ + /* this restaurant is not provisioned :^] */ return -1; } diff --git a/libavformat/oggparsedirac.c b/libavformat/oggparsedirac.c index 9a67e25f3d..74b9ba4f8b 100644 --- a/libavformat/oggparsedirac.c +++ b/libavformat/oggparsedirac.c @@ -55,14 +55,14 @@ static int dirac_header(AVFormatContext *s, int idx) if (av_image_check_sar(st->codecpar->width, st->codecpar->height, dsh->sample_aspect_ratio) >= 0) st->sample_aspect_ratio = dsh->sample_aspect_ratio; - // dirac in ogg always stores timestamps as though the video were interlaced + // Dirac in Ogg always stores timestamps as though the video were interlaced avpriv_set_pts_info(st, 64, dsh->framerate.den, 2 * dsh->framerate.num); av_freep(&dsh); return 1; } -// various undocument things: granule is signed (only for dirac!) +// various undocumented things: granule is signed (only for Dirac!) static uint64_t dirac_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts_out) { diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c index ca89fcfe58..63598fe72b 100644 --- a/libavformat/psxstr.c +++ b/libavformat/psxstr.c @@ -1,6 +1,6 @@ /* * Sony Playstation (PSX) STR File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 6cb4d6aa42..8670eadce6 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -44,7 +44,7 @@ struct RDTDemuxContext { * in the AVFormatContext, and this variable points to the offset in * that array such that the first is the first stream of this set. */ AVStream **streams; - int n_streams; /**< streams with identifical content in this set */ + int n_streams; /**< streams with identical content in this set */ void *dynamic_protocol_context; DynamicPayloadPacketHandlerProc parse_packet; uint32_t prev_timestamp; diff --git a/libavformat/rl2.c b/libavformat/rl2.c index 69e8be2e57..0bec8f1d9a 100644 --- a/libavformat/rl2.c +++ b/libavformat/rl2.c @@ -104,7 +104,7 @@ static av_cold int rl2_read_header(AVFormatContext *s) if(back_size > INT_MAX/2 || frame_count > INT_MAX / sizeof(uint32_t)) return AVERROR_INVALIDDATA; - avio_skip(pb, 2); /* encoding mentod */ + avio_skip(pb, 2); /* encoding method */ sound_rate = avio_rl16(pb); rate = avio_rl16(pb); channels = avio_rl16(pb); diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index a0cda92da1..3708f421bc 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -258,9 +258,9 @@ static int rv10_write_header(AVFormatContext *ctx, avio_wb16(s, stream->frame_rate.num / stream->frame_rate.den); /* unknown meaning */ avio_wb32(s,0); /* unknown meaning */ avio_wb16(s, 8); /* unknown meaning */ - /* Seems to be the codec version: only use basic H263. The next - versions seems to add a diffential DC coding as in - MPEG... nothing new under the sun */ + /* Seems to be the codec version: only use basic H.263. The next + versions seems to add a differential DC coding as in + MPEG... nothing new under the sun. */ if(stream->par->codec_id == AV_CODEC_ID_RV10) avio_wb32(s,0x10000000); else @@ -402,7 +402,7 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int write_packet_header(s, stream, size + 7 + (size >= 0x4000)*4, key_frame); /* bit 7: '1' if final packet of a frame converted in several packets */ avio_w8(pb, 0x81); - /* bit 7: '1' if I frame. bits 6..0 : sequence number in current + /* bit 7: '1' if I-frame. bits 6..0 : sequence number in current frame starting from 1 */ if (key_frame) { avio_w8(pb, 0x81); diff --git a/libavformat/rtmphttp.c b/libavformat/rtmphttp.c index 2f78b155ba..31f5d43232 100644 --- a/libavformat/rtmphttp.c +++ b/libavformat/rtmphttp.c @@ -129,7 +129,7 @@ static int rtmp_http_read(URLContext *h, uint8_t *buf, int size) } else { if (rt->nb_bytes_read == 0) { /* Wait 50ms before retrying to read a server reply in - * order to reduce the number of idle requets. */ + * order to reduce the number of idle requests. */ av_usleep(50000); } diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 18d915a5ee..95d1c1de4c 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -451,7 +451,7 @@ static int read_connect(URLContext *s, RTMPContext *rt) tmpstr, rt->app); ff_rtmp_packet_destroy(&pkt); - // Send Window Acknowledgement Size (as defined in speficication) + // Send Window Acknowledgement Size (as defined in specification) if ((ret = ff_rtmp_packet_create(&pkt, RTMP_NETWORK_CHANNEL, RTMP_PT_SERVER_BW, 0, 4)) < 0) return ret; @@ -581,7 +581,7 @@ static int gen_release_stream(URLContext *s, RTMPContext *rt) /** * Generate 'FCPublish' call and send it to the server. It should make - * the server preapare for receiving media streams. + * the server prepare for receiving media streams. */ static int gen_fcpublish_stream(URLContext *s, RTMPContext *rt) { @@ -2000,7 +2000,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt) * successful response, we will return set the value to number (otherwise number * will not be changed). * - * @return 0 if reading the value succeeds, negative value otherwiss + * @return 0 if reading the value succeeds, negative value otherwise */ static int read_number_result(RTMPPacket *pkt, double *number) { @@ -2023,7 +2023,7 @@ static int read_number_result(RTMPPacket *pkt, double *number) // Value 3/4: Null if (ff_amf_read_null(&gbc)) return AVERROR_INVALIDDATA; - // Value 4/4: The resonse as AMF_NUMBER + // Value 4/4: The response as AMF_NUMBER if (ff_amf_read_number(&gbc, &numbuffer)) return AVERROR_INVALIDDATA; else @@ -2514,7 +2514,7 @@ static int rtmp_close(URLContext *h) */ static int inject_fake_duration_metadata(RTMPContext *rt) { - // We need to insert the metdata packet directly after the FLV + // We need to insert the metadata packet directly after the FLV // header, i.e. we need to move all other already read data by the // size of our fake metadata packet. diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index bf3680cb04..eef61608ab 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -504,7 +504,7 @@ int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd, /** * open a new RTP parse context for stream 'st'. 'st' can be NULL for - * MPEG2-TS streams. + * MPEG-2 TS streams. */ RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st, int payload_type, int queue_size) diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c index 33712e7b76..6ba2814be2 100644 --- a/libavformat/rtpdec_h263_rfc2190.c +++ b/libavformat/rtpdec_h263_rfc2190.c @@ -107,7 +107,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data, /* Invalid src for this format, and bits that should be zero * according to RFC 2190 aren't zero. */ av_log(ctx, AV_LOG_WARNING, - "Interpreting H263 RTP data as RFC 2429/4629 even though " + "Interpreting H.263 RTP data as RFC 2429/4629 even though " "signalled with a static payload type.\n"); data->newformat = 1; return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf, diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 4ab0eee89b..8dd56a549e 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -1,5 +1,5 @@ /* - * RTP H264 Protocol (RFC3984) + * RTP H.264 Protocol (RFC3984) * Copyright (c) 2006 Ryan Martell * * This file is part of FFmpeg. @@ -289,7 +289,7 @@ static int h264_handle_packet_fu_a(AVFormatContext *ctx, PayloadContext *data, A uint8_t fu_indicator, fu_header, start_bit, nal_type, nal; if (len < 3) { - av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H264 RTP packet\n"); + av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H.264 RTP packet\n"); return AVERROR_INVALIDDATA; } @@ -319,14 +319,14 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, int result = 0; if (!len) { - av_log(ctx, AV_LOG_ERROR, "Empty H264 RTP packet\n"); + av_log(ctx, AV_LOG_ERROR, "Empty H.264 RTP packet\n"); return AVERROR_INVALIDDATA; } nal = buf[0]; type = nal & 0x1f; - /* Simplify the case (these are all the nal types used internally by - * the h264 codec). */ + /* Simplify the case (these are all the NAL types used internally by + * the H.264 codec). */ if (type >= 1 && type <= 23) type = 1; switch (type) { diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index 37602925ff..304699ea41 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -22,7 +22,7 @@ /** * @file - * @brief MPEG4 / RTP Code + * @brief MPEG-4 / RTP Code * @author Fabrice Bellard * @author Romain Degez */ diff --git a/libavformat/rtpdec_qt.c b/libavformat/rtpdec_qt.c index f383afc35e..77a3ce40be 100644 --- a/libavformat/rtpdec_qt.c +++ b/libavformat/rtpdec_qt.c @@ -93,7 +93,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, if (pos + 12 > len) return AVERROR_INVALIDDATA; - skip_bits(&gb, 2); // has non-I frames:1, is sparse:1 + skip_bits(&gb, 2); // has non-I-frames:1, is sparse:1 is_start = get_bits1(&gb); is_finish = get_bits1(&gb); if (!is_start || !is_finish) { diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c index d1e355d3da..f0e457b70f 100644 --- a/libavformat/rtpdec_vp8.c +++ b/libavformat/rtpdec_vp8.c @@ -46,7 +46,7 @@ struct PayloadContext { int prev_pictureid; int broken_frame; /* If sequence_dirty is set, we have lost some data (critical or - * non-critical) and decoding will have some sort of artefacts, and + * non-critical) and decoding will have some sort of artifacts, and * we thus should request a new keyframe. */ int sequence_dirty; diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index db1ec81219..efa63a5575 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -189,7 +189,7 @@ static int rtp_write_header(AVFormatContext *s1) case AV_CODEC_ID_H261: if (s1->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) { av_log(s, AV_LOG_ERROR, - "Packetizing H261 is experimental and produces incorrect " + "Packetizing H.261 is experimental and produces incorrect " "packetization for cases where GOBs don't fit into packets " "(even though most receivers may handle it just fine). " "Please set -f_strict experimental in order to enable it.\n"); @@ -205,7 +205,7 @@ static int rtp_write_header(AVFormatContext *s1) break; case AV_CODEC_ID_HEVC: /* Only check for the standardized hvcC version of extradata, keeping - * things simple and similar to the avcC/H264 case above, instead + * things simple and similar to the avcC/H.264 case above, instead * of trying to handle the pre-standardization versions (as in * libavcodec/hevc.c). */ if (st->codecpar->extradata_size > 21 && st->codecpar->extradata[0] == 1) { diff --git a/libavformat/rtpenc.h b/libavformat/rtpenc.h index 70f18edeea..62dc9ab10a 100644 --- a/libavformat/rtpenc.h +++ b/libavformat/rtpenc.h @@ -76,7 +76,7 @@ typedef struct RTPMuxContext RTPMuxContext; { "latm", "Use MP4A-LATM packetization instead of MPEG4-GENERIC for AAC", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_MP4A_LATM}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \ { "rfc2190", "Use RFC 2190 packetization instead of RFC 4629 for H.263", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_RFC2190}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \ { "skip_rtcp", "Don't send RTCP sender reports", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_SKIP_RTCP}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \ - { "h264_mode0", "Use mode 0 for H264 in RTP", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_H264_MODE0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \ + { "h264_mode0", "Use mode 0 for H.264 in RTP", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_H264_MODE0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" }, \ { "send_bye", "Send RTCP BYE packets when finishing", 0, AV_OPT_TYPE_CONST, {.i64 = FF_RTP_FLAG_SEND_BYE}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM, "rtpflags" } \ void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m); diff --git a/libavformat/rtpenc_h261.c b/libavformat/rtpenc_h261.c index fc50285f5e..22461ca25b 100644 --- a/libavformat/rtpenc_h261.c +++ b/libavformat/rtpenc_h261.c @@ -72,12 +72,12 @@ void ff_rtp_send_h261(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_ rtp_ctx->buf[2] = 0; /* quant=0, hmvd=5 */ rtp_ctx->buf[3] = 0; /* vmvd=0 */ if (frame_size < 2 || frame_buf[0] != 0 || frame_buf[1] != 1) { - /* A full, correct fix for this would be to make the H261 encoder + /* A full, correct fix for this would be to make the H.261 encoder * support inserting extra GOB headers (triggered by setting e.g. * "-ps 1"), and including information about macroblock boundaries * (such as for h263_rfc2190). */ av_log(ctx, AV_LOG_WARNING, - "RTP/H261 packet not cut at a GOB boundary, not signaled correctly\n"); + "RTP/H.261 packet not cut at a GOB boundary, not signaled correctly\n"); } cur_frame_size = FFMIN(rtp_ctx->max_payload_size - RTP_H261_HEADER_SIZE, frame_size); diff --git a/libavformat/rtpenc_h263_rfc2190.c b/libavformat/rtpenc_h263_rfc2190.c index 34b39065b8..3567202d8d 100644 --- a/libavformat/rtpenc_h263_rfc2190.c +++ b/libavformat/rtpenc_h263_rfc2190.c @@ -114,7 +114,7 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size, init_get_bits(&gb, buf, size*8); if (get_bits(&gb, 22) == 0x20) { /* Picture Start Code */ info.tr = get_bits(&gb, 8); - skip_bits(&gb, 2); /* PTYPE start, H261 disambiguation */ + skip_bits(&gb, 2); /* PTYPE start, H.261 disambiguation */ skip_bits(&gb, 3); /* Split screen, document camera, freeze picture release */ info.src = get_bits(&gb, 3); info.i = get_bits(&gb, 1); @@ -168,7 +168,7 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size, mb_info_pos++; } } else { - av_log(s1, AV_LOG_ERROR, "Unable to split H263 packet, " + av_log(s1, AV_LOG_ERROR, "Unable to split H.263 packet, " "use -mb_info %d or -ps 1.\n", s->max_payload_size - 8); } diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c index 88acb37fea..38eb2e68eb 100644 --- a/libavformat/rtpenc_jpeg.c +++ b/libavformat/rtpenc_jpeg.c @@ -59,7 +59,7 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size) return; } - /* preparse the header for getting some infos */ + /* preparse the header for getting some info */ for (i = 0; i < size; i++) { if (buf[i] != 0xff) continue; diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c index b4d950b91d..00c29a7d02 100644 --- a/libavformat/rtpenc_xiph.c +++ b/libavformat/rtpenc_xiph.c @@ -68,7 +68,7 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size) // 0 - whole frame (possibly multiple frames) // 1 - first fragment // 2 - fragment continuation - // 3 - last fragmement + // 3 - last fragment frag = size <= max_pkt_size ? 0 : 1; if (!frag && !xdt) { // do we have a whole frame of raw data? diff --git a/libavformat/sdp.c b/libavformat/sdp.c index ea369e9226..01b564b7be 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -261,7 +261,7 @@ static char *extradata2psets_hevc(AVCodecParameters *par) goto err; nalu_type = extradata[pos] & 0x3f; // Not including libavcodec/hevc.h to avoid confusion between - // NAL_* with the same name for both H264 and HEVC. + // NAL_* with the same name for both H.264 and HEVC. if (nalu_type == 32) // VPS ps_pos[0] = pos; else if (nalu_type == 33) // SPS diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 6ee2bd435e..1fdef50cc7 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -1,6 +1,6 @@ /* * Sega FILM Format (CPK) Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 882f70e9ee..734a3f2c1e 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -1,6 +1,6 @@ /* * Sierra VMD Format Demuxer - * Copyright (c) 2004 The FFmpeg Project + * Copyright (c) 2004 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/spdif.h b/libavformat/spdif.h index fee4ff710b..0039fcfe5c 100644 --- a/libavformat/spdif.h +++ b/libavformat/spdif.h @@ -54,8 +54,8 @@ enum IEC61937DataType { static const uint16_t spdif_mpeg_pkt_offset[2][3] = { //LAYER1 LAYER2 LAYER3 - { 3072, 9216, 4608 }, // MPEG2 LSF - { 1536, 4608, 4608 }, // MPEG1 + { 3072, 9216, 4608 }, // MPEG-2 LSF + { 1536, 4608, 4608 }, // MPEG-1 }; void ff_spdif_bswap_buf16(uint16_t *dst, const uint16_t *src, int w); diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c index 978803874b..daf1c1f87c 100644 --- a/libavformat/spdifenc.c +++ b/libavformat/spdifenc.c @@ -32,7 +32,7 @@ /* * Terminology used in specification: * data-burst - IEC61937 frame, contains header and encapsuled frame - * burst-preambule - IEC61937 frame header, contains 16-bits words named Pa, Pb, Pc and Pd + * burst-preamble - IEC61937 frame header, contains 16-bit words named Pa, Pb, Pc and Pd * burst-payload - encapsuled frame * Pa, Pb - syncword - 0xF872, 0x4E1F * Pc - burst-info, contains data-type (bits 0-6), error flag (bit 7), data-type-dependent info (bits 8-12) @@ -147,7 +147,7 @@ static int spdif_header_eac3(AVFormatContext *s, AVPacket *pkt) * DTS type IV (DTS-HD) can be transmitted with various frame repetition * periods; longer repetition periods allow for longer packets and therefore * higher bitrate. Longer repetition periods mean that the constant bitrate of - * the outputted IEC 61937 stream is higher. + * the output IEC 61937 stream is higher. * The repetition period is measured in IEC 60958 frames (4 bytes). */ static int spdif_dts4_subtype(int period) @@ -319,8 +319,8 @@ static int spdif_header_dts(AVFormatContext *s, AVPacket *pkt) static const enum IEC61937DataType mpeg_data_type[2][3] = { // LAYER1 LAYER2 LAYER3 - { IEC61937_MPEG2_LAYER1_LSF, IEC61937_MPEG2_LAYER2_LSF, IEC61937_MPEG2_LAYER3_LSF },//MPEG2 LSF - { IEC61937_MPEG1_LAYER1, IEC61937_MPEG1_LAYER23, IEC61937_MPEG1_LAYER23 }, //MPEG1 + { IEC61937_MPEG2_LAYER1_LSF, IEC61937_MPEG2_LAYER2_LSF, IEC61937_MPEG2_LAYER3_LSF }, // MPEG-2 LSF + { IEC61937_MPEG1_LAYER1, IEC61937_MPEG1_LAYER23, IEC61937_MPEG1_LAYER23 }, // MPEG-1 }; static int spdif_header_mpeg(AVFormatContext *s, AVPacket *pkt) diff --git a/libavformat/url.h b/libavformat/url.h index f19b91ccb0..5c5024553e 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -261,7 +261,7 @@ int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles); int ffurl_shutdown(URLContext *h, int flags); /** - * Check if the user has requested to interrup a blocking function + * Check if the user has requested to interrupt a blocking function * associated with cb. */ int ff_check_interrupt(AVIOInterruptCB *cb); diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index 6b4e41e9cc..642dcbbf7e 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -1,6 +1,6 @@ /* * Wing Commander III Movie (.mve) File Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/westwood_aud.c b/libavformat/westwood_aud.c index fe8bdb01c2..4750167f13 100644 --- a/libavformat/westwood_aud.c +++ b/libavformat/westwood_aud.c @@ -1,6 +1,6 @@ /* * Westwood Studios AUD Format Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c index 88bd7cd602..3635c6ab36 100644 --- a/libavformat/westwood_vqa.c +++ b/libavformat/westwood_vqa.c @@ -1,6 +1,6 @@ /* * Westwood Studios VQA Format Demuxer - * Copyright (c) 2003 The FFmpeg Project + * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * @@ -131,7 +131,7 @@ static int wsvqa_read_header(AVFormatContext *s) chunk_tag = AV_RB32(&scratch[0]); chunk_size = AV_RB32(&scratch[4]); - /* catch any unknown header tags, for curiousity */ + /* catch any unknown header tags, for curiosity */ switch (chunk_tag) { case CINF_TAG: case CINH_TAG: diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 39547f092c..bd32d70dcf 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -36,7 +36,7 @@ #include "wtv.h" #include "mpegts.h" -/* Macros for formating GUIDs */ +/* Macros for formatting GUIDs */ #define PRI_PRETTY_GUID \ "%08"PRIx32"-%04"PRIx16"-%04"PRIx16"-%02x%02x%02x%02x%02x%02x%02x%02x" #define ARG_PRETTY_GUID(g) \ @@ -320,7 +320,7 @@ typedef struct WtvContext { AVIOContext *pb; /**< timeline file */ int64_t epoch; int64_t pts; /**< pts for next data chunk */ - int64_t last_valid_pts; /**< latest valid pts, used for interative seeking */ + int64_t last_valid_pts; /**< latest valid pts, used for interactive seeking */ /* maintain private seek index, as the AVIndexEntry->pos is relative to the start of the 'timeline' file, not the file system (AVFormatContext->pb) */ |