History

cosmetics: Fix spelling mistakes

Vittorio Giovara committed 10 years ago

Commit 41ed7ab1 parent 5c31eaa361 files · +962 −964Browse files

Unified · Split

361 files
  1. Changelog +2 −2
  2. avconv.c +4 −4
  3. avconv_opt.c +1 −1
  4. avplay.c +2 −2
  5. avprobe.c +1 −1
  6. doc/APIchanges +3 −3
  7. doc/avconv.texi +2 −2
  8. doc/avplay.texi +2 −2
  9. doc/avtools-common-opts.texi +1 −1
  10. doc/avutil.txt +1 −1
  11. doc/developer.texi +2 −2
  12. doc/encoders.texi +2 −2
  13. doc/examples/avcodec.c +10 −10
  14. doc/examples/output.c +1 −1
  15. doc/fate.texi +3 −3
  16. doc/filters.texi +5 −5
  17. doc/git-howto.texi +1 −1
  18. doc/indevs.texi +1 −1
  19. doc/nut.texi +1 −1
  20. doc/optimization.txt +2 −2
  21. doc/platform.texi +2 −2
  22. doc/swscale.txt +2 −2
  23. doc/viterbi.txt +7 −7
  24. libavcodec/aacdec.c +3 −3
  25. libavcodec/aacsbr.c +1 −1
  26. libavcodec/aarch64/mpegaudiodsp_neon.S +1 −1
  27. libavcodec/aasc.c +1 −1
  28. libavcodec/adpcm.c +1 −1
  29. libavcodec/adpcm.h +1 −1
  30. libavcodec/adpcm_data.c +1 −1
  31. libavcodec/adpcm_data.h +1 −1
  32. libavcodec/adpcmenc.c +1 −1
  33. libavcodec/alac.c +14 −14
  34. libavcodec/alsdec.c +1 −1
  35. libavcodec/amrnbdec.c +2 −2
  36. libavcodec/amrwbdata.h +1 −1
  37. libavcodec/ansi.c +1 −1
  38. libavcodec/apedec.c +2 −2
  39. libavcodec/arm/mlpdsp_armv6.S +1 −1
  40. libavcodec/arm/mpegvideo_armv5te.c +1 −1
  41. libavcodec/arm/simple_idct_arm.S +3 −3
  42. libavcodec/arm/vp8dsp_neon.S +1 −1
  43. libavcodec/ass.c +1 −1
  44. libavcodec/ass.h +1 −1
  45. libavcodec/atrac1data.h +1 −1
  46. libavcodec/avcodec.h +27 −27
  47. libavcodec/bink.c +1 −1
  48. libavcodec/bitstream.c +2 −2
  49. libavcodec/bsf.h +1 −1
  50. libavcodec/cinepak.c +1 −1
  51. libavcodec/cook.c +3 −3
  52. libavcodec/cookdata.h +1 −1
  53. libavcodec/cyuv.c +1 −1
  54. libavcodec/dcadata.c +3 −3
  55. libavcodec/dcadec.c +1 −1
  56. libavcodec/dct-test.c +1 −1
  57. libavcodec/dnxhddata.h +1 −1
  58. libavcodec/dnxhdenc.c +1 −1
  59. libavcodec/dpcm.c +1 −1
  60. libavcodec/dxva2_h264.c +1 −1
  61. libavcodec/eamad.c +2 −2
  62. libavcodec/elbg.c +2 −2
  63. libavcodec/error_resilience.c +1 −1
  64. libavcodec/error_resilience.h +1 −1
  65. libavcodec/exr.c +5 −5
  66. libavcodec/faxcompr.h +1 −1
  67. libavcodec/flicvideo.c +3 −3
  68. libavcodec/flvenc.c +1 −1
  69. libavcodec/g723_1dec.c +2 −2
  70. libavcodec/g726.c +13 −13
  71. libavcodec/get_bits.h +2 −2
  72. libavcodec/h261.c +2 −2
  73. libavcodec/h261.h +2 −2
  74. libavcodec/h261_parser.c +2 −2
  75. libavcodec/h261dec.c +2 −2
  76. libavcodec/h261enc.c +1 −1
  77. libavcodec/h263.c +4 −4
  78. libavcodec/h263.h +2 −2
  79. libavcodec/h263data.c +1 −1
  80. libavcodec/h263data.h +1 −1
  81. libavcodec/h263dec.c +4 −4
  82. libavcodec/h264.c +1 −1
  83. libavcodec/h264.h +5 −5
  84. libavcodec/h2645_parse.h +1 −1
  85. libavcodec/h264_cabac.c +2 −2
  86. libavcodec/h264_cavlc.c +1 −1
  87. libavcodec/h264_direct.c +1 −1
  88. libavcodec/h264_loopfilter.c +1 −1
  89. libavcodec/h264_mb.c +2 −2
  90. libavcodec/h264_mvpred.h +2 −2
  91. libavcodec/h264_parse.h +1 −1
  92. libavcodec/h264_parser.c +1 −1
  93. libavcodec/h264_picture.c +1 −1
  94. libavcodec/h264_ps.c +1 −1
  95. libavcodec/h264_refs.c +2 −2
  96. libavcodec/h264_sei.c +2 −2
  97. libavcodec/h264_slice.c +3 −3
  98. libavcodec/h264addpx_template.c +1 −1
  99. libavcodec/h264data.c +2 −2
  100. libavcodec/h264dsp.c +1 −1
  101. libavcodec/h264dsp.h +1 −1
  102. libavcodec/h264dsp_template.c +1 −1
  103. libavcodec/h264pred.c +2 −2
  104. libavcodec/h264pred.h +2 −2
  105. libavcodec/h264pred_template.c +1 −1
  106. libavcodec/hevc_mvs.c +1 −1
  107. libavcodec/hevc_sei.c +1 −1
  108. libavcodec/idcinvideo.c +1 −1
  109. libavcodec/imc.c +1 −1
  110. libavcodec/indeo3.c +2 −2
  111. libavcodec/indeo3data.h +2 −2
  112. libavcodec/intelh263dec.c +4 −4
  113. libavcodec/interplayvideo.c +1 −1
  114. libavcodec/intrax8.c +5 −5
  115. libavcodec/ituh263dec.c +9 −9
  116. libavcodec/ituh263enc.c +9 −9
  117. libavcodec/ivi_dsp.c +1 −1
  118. libavcodec/ivi_dsp.h +1 −1
  119. libavcodec/jpeg2000.c +2 −2
  120. libavcodec/jpeglsenc.c +1 −1
  121. libavcodec/lagarith.c +5 −5
  122. libavcodec/libopencore-amr.c +2 −2
  123. libavcodec/libopus.c +4 −4
  124. libavcodec/libopus.h +4 −4
  125. libavcodec/libopusdec.c +1 −1
  126. libavcodec/libopusenc.c +4 −4
  127. libavcodec/libschroedingerenc.c +1 −1
  128. libavcodec/libspeexenc.c +1 −1
  129. libavcodec/libtheoraenc.c +1 −1
  130. libavcodec/libvo-amrwbenc.c +2 −2
  131. libavcodec/libxvid.c +4 −4
  132. libavcodec/lsp.c +1 −1
  133. libavcodec/lsp.h +1 −1
  134. libavcodec/mjpegdec.c +6 −6
  135. libavcodec/mjpegdec.h +1 −1
  136. libavcodec/mjpegenc.h +1 −1
  137. libavcodec/mlp_parser.h +3 −3
  138. libavcodec/mmaldec.c +1 −1
  139. libavcodec/motion_est.c +4 −4
  140. libavcodec/motion_est_template.c +4 −4
  141. libavcodec/motionpixels_tablegen.c +1 −1
  142. libavcodec/motionpixels_tablegen.h +1 −1
  143. libavcodec/mpeg12.h +1 −1
  144. libavcodec/mpeg12data.c +2 −2
  145. libavcodec/mpeg12data.h +2 −2
  146. libavcodec/mpeg12dec.c +5 −5
  147. libavcodec/mpeg12enc.c +6 −6
  148. libavcodec/mpeg12vlc.h +2 −2
  149. libavcodec/mpeg4data.h +3 −3
  150. libavcodec/mpeg4video.c +3 −3
  151. libavcodec/mpeg4video.h +2 −2
  152. libavcodec/mpeg4video_parser.c +1 −1
  153. libavcodec/mpeg4video_parser.h +1 −1
  154. libavcodec/mpeg4videodec.c +15 −15
  155. libavcodec/mpeg4videoenc.c +13 −13
  156. libavcodec/mpegaudiodec_template.c +1 −1
  157. libavcodec/mpegaudiodecheader.h +1 −1
  158. libavcodec/mpegaudioenc.c +2 −2
  159. libavcodec/mpegpicture.c +2 −2
  160. libavcodec/mpegvideo.c +10 −10
  161. libavcodec/mpegvideo.h +44 −44
  162. libavcodec/mpegvideo_enc.c +19 −18
  163. libavcodec/mpegvideo_motion.c +1 −1
  164. libavcodec/mpegvideo_parser.c +1 −1
  165. libavcodec/mqc.h +2 −2
  166. libavcodec/msmpeg4.c +5 −5
  167. libavcodec/msmpeg4dec.c +2 −2
  168. libavcodec/msmpeg4enc.c +4 −5
  169. libavcodec/msrle.c +1 −1
  170. libavcodec/msvideo1.c +1 −1
  171. libavcodec/nuv.c +2 −2
  172. libavcodec/nvenc.c +4 −4
  173. libavcodec/nvenc.h +1 −1
  174. libavcodec/nvenc_h264.c +2 −2
  175. libavcodec/omx.c +4 −4
  176. libavcodec/options_table.h +1 −1
  177. libavcodec/opus.c +2 −2
  178. libavcodec/pcm-dvd.c +2 −2
  179. libavcodec/pngdec.c +1 −1
  180. libavcodec/pthread_internal.h +1 −1
  181. libavcodec/qcelpdec.c +1 −1
  182. libavcodec/qdm2.c +2 −2
  183. libavcodec/qsvdec_mpeg2.c +1 −1
  184. libavcodec/qtrle.c +1 −1
  185. libavcodec/qtrleenc.c +2 −2
  186. libavcodec/ra144.c +1 −1
  187. libavcodec/ra144.h +1 −1
  188. libavcodec/ra144enc.c +3 −3
  189. libavcodec/ra288.c +1 −1
  190. libavcodec/ra288.h +1 −1
  191. libavcodec/ratecontrol.c +5 −5
  192. libavcodec/ratecontrol.h +1 −1
  193. libavcodec/rectangle.h +1 −1
  194. libavcodec/rl2.c +1 −1
  195. libavcodec/roqvideodec.c +1 −1
  196. libavcodec/roqvideoenc.c +1 −1
  197. libavcodec/rpza.c +2 −2
  198. libavcodec/rv10.c +2 −2
  199. libavcodec/rv10enc.c +1 −1
  200. libavcodec/rv30data.h +1 −1
  201. libavcodec/rv34.c +2 −2
  202. libavcodec/rv34.h +2 −2
  203. libavcodec/screenpresso.c +1 −1
  204. libavcodec/simple_idct_template.c +2 −4
  205. libavcodec/smc.c +1 −1
  206. libavcodec/sp5x.h +1 −1
  207. libavcodec/svq1.c +1 −1
  208. libavcodec/svq1.h +1 −1
  209. libavcodec/svq1_cb.h +1 −1
  210. libavcodec/svq1_vlc.h +1 −1
  211. libavcodec/svq1dec.c +1 −1
  212. libavcodec/svq1enc.c +1 −1
  213. libavcodec/svq3.c +1 −1
  214. libavcodec/tdsc.c +2 −2
  215. libavcodec/texturedsp.c +1 −1
  216. libavcodec/texturedspenc.c +2 −2
  217. libavcodec/twinvq.h +1 −1
  218. libavcodec/twinvqdec.c +1 −1
  219. libavcodec/utvideoenc.c +3 −3
  220. libavcodec/vaapi_encode.c +2 −2
  221. libavcodec/vaapi_encode_h264.c +4 −4
  222. libavcodec/vaapi_encode_h265.c +4 −4
  223. libavcodec/vc1.c +3 −3
  224. libavcodec/vc1.h +16 −16
  225. libavcodec/vc1_block.c +7 −7
  226. libavcodec/vc1_mc.c +2 −2
  227. libavcodec/vc1_pred.c +1 −1
  228. libavcodec/vc1dec.c +1 −1
  229. libavcodec/vda_h264.c +2 −2
  230. libavcodec/vdpau.h +1 −1
  231. libavcodec/vdpau_h264.c +2 −2
  232. libavcodec/vp3.c +7 −7
  233. libavcodec/vp3data.h +1 −1
  234. libavcodec/vp3dsp.c +1 −1
  235. libavcodec/vp8.h +2 −2
  236. libavcodec/vp9.h +1 −1
  237. libavcodec/vqavideo.c +1 −1
  238. libavcodec/wma.c +1 −1
  239. libavcodec/wmadec.c +3 −3
  240. libavcodec/wmaenc.c +1 −1
  241. libavcodec/wmalosslessdec.c +3 −3
  242. libavcodec/wmaprodec.c +1 −1
  243. libavcodec/wmavoice.c +2 −2
  244. libavcodec/wmv2enc.c +1 −1
  245. libavcodec/x86/cabac.h +1 −1
  246. libavcodec/x86/h264_chromamc.asm +1 −1
  247. libavcodec/x86/h264_i386.h +1 −1
  248. libavcodec/x86/inline_asm.h +1 −1
  249. libavcodec/x86/mpegvideo.c +2 −2
  250. libavcodec/x86/rv40dsp.asm +5 −5
  251. libavcodec/x86/vc1dsp_mmx.c +7 −7
  252. libavcodec/xan.c +1 −1
  253. libavcodec/zmbv.c +1 −1
  254. libavdevice/x11grab.c +1 −1
  255. libavfilter/avfilter.h +1 −1
  256. libavfilter/interlace.h +2 −2
  257. libavfilter/pthread.c +1 −1
  258. libavfilter/setpts.c +1 −1
  259. libavfilter/vf_gradfun.c +3 −3
  260. libavfilter/vf_hqdn3d.c +1 −1
  261. libavfilter/vf_overlay.c +1 −1
  262. libavfilter/vf_select.c +1 −1
  263. libavfilter/vf_yadif.c +1 −1
  264. libavformat/4xm.c +1 −1
  265. libavformat/aea.c +1 −1
  266. libavformat/amr.c +2 −2
  267. libavformat/asf.h +1 −1
  268. libavformat/asfdec.c +3 −3
  269. libavformat/asfenc.c +2 −2
  270. libavformat/avc.c +1 −1
  271. libavformat/avformat.h +1 −1
  272. libavformat/avidec.c +1 −1
  273. libavformat/avio.h +4 −4
  274. libavformat/avisynth.c +1 −1
  275. libavformat/avlanguage.h +1 −1
  276. libavformat/bink.c +1 −1
  277. libavformat/bmv.c +1 −1
  278. libavformat/dump.c +1 −1
  279. libavformat/dv.c +8 −8
  280. libavformat/dvenc.c +2 −2
  281. libavformat/electronicarts.c +1 −1
  282. libavformat/flic.c +1 −1
  283. libavformat/flvdec.c +2 −2
  284. libavformat/gxfenc.c +1 −1
  285. libavformat/hevc.c +1 −1
  286. libavformat/http.h +1 −1
  287. libavformat/httpauth.h +1 −1
  288. libavformat/id3v2enc.c +1 −1
  289. libavformat/idcin.c +2 −2
  290. libavformat/idroqdec.c +1 −1
  291. libavformat/iff.c +1 −1
  292. libavformat/internal.h +1 −1
  293. libavformat/ipmovie.c +1 −1
  294. libavformat/isom.c +46 −46
  295. libavformat/matroska.c +1 −1
  296. libavformat/matroska.h +1 −1
  297. libavformat/mms.c +1 −1
  298. libavformat/mmsh.c +1 −1
  299. libavformat/mmst.c +2 −2
  300. libavformat/mov.c +3 −3
  301. libavformat/movenc-test.c +5 −5
  302. libavformat/movenc.c +3 −3
  303. libavformat/mpeg.c +2 −2
  304. libavformat/mpeg.h +1 −1
  305. libavformat/mpegenc.c +3 −3
  306. libavformat/mpegts.c +5 −5
  307. libavformat/mpegts.h +1 −1
  308. libavformat/mpegtsenc.c +5 −5
  309. libavformat/mxf.c +5 −5
  310. libavformat/mxfdec.c +6 −6
  311. libavformat/mxfenc.c +6 −6
  312. libavformat/nsvdec.c +4 −4
  313. libavformat/oggparsedirac.c +2 −2
  314. libavformat/psxstr.c +1 −1
  315. libavformat/rdt.c +1 −1
  316. libavformat/rl2.c +1 −1
  317. libavformat/rmenc.c +4 −4
  318. libavformat/rtmphttp.c +1 −1
  319. libavformat/rtmpproto.c +5 −5
  320. libavformat/rtpdec.c +1 −1
  321. libavformat/rtpdec_h263_rfc2190.c +1 −1
  322. libavformat/rtpdec_h264.c +5 −5
  323. libavformat/rtpdec_mpeg4.c +2 −2
  324. libavformat/rtpdec_qt.c +1 −1
  325. libavformat/rtpdec_vp8.c +1 −1
  326. libavformat/rtpenc.c +2 −2
  327. libavformat/rtpenc.h +1 −1
  328. libavformat/rtpenc_h261.c +2 −2
  329. libavformat/rtpenc_h263_rfc2190.c +3 −3
  330. libavformat/rtpenc_jpeg.c +1 −1
  331. libavformat/rtpenc_xiph.c +1 −1
  332. libavformat/sdp.c +1 −1
  333. libavformat/segafilm.c +1 −1
  334. libavformat/sierravmd.c +1 −1
  335. libavformat/spdif.h +2 −2
  336. libavformat/spdifenc.c +4 −4
  337. libavformat/url.h +1 −1
  338. libavformat/wc3movie.c +1 −1
  339. libavformat/westwood_aud.c +1 −1
  340. libavformat/westwood_vqa.c +2 −2
  341. libavformat/wtv.c +2 −2
  342. libavresample/dither.h +2 −2
  343. libavresample/resample.c +1 −1
  344. libavutil/avassert.h +1 −1
  345. libavutil/avr32/intreadwrite.h +1 −1
  346. libavutil/avutil.h +1 −1
  347. libavutil/dict.h +1 −1
  348. libavutil/frame.h +1 −1
  349. libavutil/hwcontext.h +2 −2
  350. libavutil/md5.c +1 −1
  351. libavutil/opt.h +1 −1
  352. libavutil/pixfmt.h +11 −11
  353. libavutil/random_seed.c +1 −1
  354. libavutil/x86/cpu.c +1 −1
  355. libswscale/output.c +5 −5
  356. libswscale/swscale.h +1 −1
  357. libswscale/swscale_internal.h +58 −58
  358. libswscale/swscale_unscaled.c +1 −1
  359. libswscale/x86/output.asm +4 −4
  360. libswscale/x86/scale.asm +3 −3
  361. tests/checkasm/h264pred.c +3 −3
Changelog+2−2
@@ -377,7 +377,7 @@ version 0.7_beta2: · 376 unmodified lines
377377 - DPX image encoder
378378 - SMPTE 302M AES3 audio decoder
379379 - ffmpeg no longer quits after the 'q' key is pressed; use 'ctrl+c' instead
380−- 9bit and 10bit per sample support in the H.264 decoder
380+- 9 bits and 10 bits per sample support in the H.264 decoder
381381
382382
383383 version 0.7_beta1:
@@ -732,7 +732,7 @@ version 0.4.9-pre1: · 348 unmodified lines
732732 - rate distorted optimal lambda->qp support
733733 - AAC encoding with libfaac
734734 - Sunplus JPEG codec (SP5X) support
735−- use Lagrange multipler instead of QP for ratecontrol
735+- use Lagrange multiplier instead of QP for ratecontrol
736736 - Theora/VP3 decoding support
737737 - XA and ADX ADPCM codecs
738738 - export MPEG-2 active display area / pan scan
avconv.c+4−4
@@ -1,6 +1,6 @@
11 /*
22 * avconv main
3− * Copyright (c) 2000-2011 The libav developers.
3+ * Copyright (c) 2000-2011 The Libav developers
44 *
55 * This file is part of Libav.
66 *
@@ -1154,7 +1154,7 @@ int guess_input_channel_layout(InputStream *ist) · 1147 unmodified lines
11541154 return 0;
11551155 av_get_channel_layout_string(layout_name, sizeof(layout_name),
11561156 dec->channels, dec->channel_layout);
1157− av_log(NULL, AV_LOG_WARNING, "Guessed Channel Layout for Input Stream "
1157+ av_log(NULL, AV_LOG_WARNING, "Guessed Channel Layout for Input Stream "
11581158 "#%d.%d : %s\n", ist->file_index, ist->st->index, layout_name);
11591159 }
11601160 return 1;
@@ -1630,7 +1630,7 @@ static int init_output_bsfs(OutputStream *ost) · 469 unmodified lines
16301630 for (i = 0; i < ost->nb_bitstream_filters; i++) {
16311631 ret = av_bsf_alloc(ost->bitstream_filters[i], &ctx);
16321632 if (ret < 0) {
1633− av_log(NULL, AV_LOG_ERROR, "Error allocating a bistream filter context\n");
1633+ av_log(NULL, AV_LOG_ERROR, "Error allocating a bitstream filter context\n");
16341634 return ret;
16351635 }
16361636 ost->bsf_ctx[i] = ctx;
@@ -1644,7 +1644,7 @@ static int init_output_bsfs(OutputStream *ost) · 7 unmodified lines
16441644
16451645 ret = av_bsf_init(ctx);
16461646 if (ret < 0) {
1647− av_log(NULL, AV_LOG_ERROR, "Error initializing bistream filter: %s\n",
1647+ av_log(NULL, AV_LOG_ERROR, "Error initializing bitstream filter: %s\n",
16481648 ost->bitstream_filters[i]->name);
16491649 return ret;
16501650 }
avconv_opt.c+1−1
@@ -760,7 +760,7 @@ static int open_input_file(OptionsContext *o, const char *filename) · 759 unmodified lines
760760 ic->flags |= AVFMT_FLAG_NONBLOCK;
761761 ic->interrupt_callback = int_cb;
762762
763− /* open the input file with generic libav function */
763+ /* open the input file with generic Libav function */
764764 err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts);
765765 if (err < 0) {
766766 print_error(filename, err);
avplay.c+2−2
@@ -1362,7 +1362,7 @@ static int output_picture2(PlayerState *is, AVFrame *src_frame, double pts1, int · 1361 unmodified lines
13621362 }
13631363 /* update video clock for next frame */
13641364 frame_delay = av_q2d(is->video_dec->time_base);
1365− /* for MPEG2, the frame can be repeated, so we update the
1365+ /* For MPEG-2, the frame can be repeated, so we update the
13661366 clock accordingly */
13671367 frame_delay += src_frame->repeat_pict * (frame_delay * 0.5);
13681368 is->video_clock += frame_delay;
@@ -2123,7 +2123,7 @@ static int stream_component_open(PlayerState *is, int stream_index) · 754 unmodified lines
21232123 /* init averaging filter */
21242124 is->audio_diff_avg_coef = exp(log(0.01) / AUDIO_DIFF_AVG_NB);
21252125 is->audio_diff_avg_count = 0;
2126− /* since we do not have a precise anough audio fifo fullness,
2126+ /* since we do not have a precise enough audio FIFO fullness,
21272127 we correct audio sync only if larger than this threshold */
21282128 is->audio_diff_threshold = 2.0 * SDL_AUDIO_BUFFER_SIZE / avctx->sample_rate;
21292129
avprobe.c+1−1
@@ -62,7 +62,7 @@ static int use_value_sexagesimal_format = 0; · 61 unmodified lines
6262 /* globals */
6363 static const OptionDef *options;
6464
65−/* AVprobe context */
65+/* avprobe context */
6666 static const char *input_filename;
6767 static AVInputFormat *iformat = NULL;
6868
doc/APIchanges+3−3
@@ -23,7 +23,7 @@ API changes, most recent first: · 22 unmodified lines
2323
2424 2016-xx-xx - xxxxxxx - lavc 57.15.0 - avcodec.h
2525 Add a new bitstream filtering API working with AVPackets.
26− Deprecate the old bistream filtering API.
26+ Deprecate the old bitstream filtering API.
2727
2828 2016-xx-xx - xxxxxxx - lavfi 6.3.0 - avfilter.h
2929 Add AVFilterContext.hw_device_ctx.
@@ -501,7 +501,7 @@ API changes, most recent first: · 471 unmodified lines
501501
502502 2013-08-05 - f824535 - lavc 55.13.0 - avcodec.h
503503 Deprecate the bitstream-related members from struct AVVDPAUContext.
504− The bistream buffers no longer need to be explicitly freed.
504+ The bitstream buffers no longer need to be explicitly freed.
505505
506506 2013-08-05 - 549294f - lavc 55.12.0 - avcodec.h
507507 Deprecate the CODEC_CAP_HWACCEL_VDPAU codec capability. Use CODEC_CAP_HWACCEL
@@ -591,7 +591,7 @@ lavd 54.0.0, lavfi 3.5.0 · 83 unmodified lines
591591 * base -- is now stored in AVBufferRef
592592 * reference, type, buffer_hints -- are unnecessary in the new API
593593 * hwaccel_picture_private, owner, thread_opaque -- should not
594− have been acessed from outside of lavc
594+ have been accessed from outside of lavc
595595 * qscale_table, qstride, qscale_type, mbskip_table, motion_val,
596596 mb_type, dct_coeff, ref_index -- mpegvideo-specific tables,
597597 which are not exported anymore.
doc/avconv.texi+2−2
@@ -641,7 +641,7 @@ For DXVA2, this option should contain the number of the display adapter to use. · 640 unmodified lines
641641 If this option is not specified, the default adapter is used.
642642
643643 @item qsv
644−For QSV, this option corresponds to the valus of MFX_IMPL_* . Allowed values
644+For QSV, this option corresponds to the values of MFX_IMPL_* . Allowed values
645645 are:
646646 @table @option
647647 @item auto
@@ -886,7 +886,7 @@ avconv -i infile -streamid 0:33 -streamid 1:36 out.ts · 238 unmodified lines
886886 @end example
887887
888888 @item -bsf[:@var{stream_specifier}] @var{bitstream_filters} (@emph{output,per-stream})
889−Set bitstream filters for matching streams. @var{bistream_filters} is
889+Set bitstream filters for matching streams. @var{bitstream_filters} is
890890 a comma-separated list of bitstream filters. Use the @code{-bsfs} option
891891 to get the list of bitstream filters.
892892 @example
doc/avplay.texi+2−2
@@ -20,7 +20,7 @@ avplay [options] @file{input_file} · 19 unmodified lines
2020 @chapter Description
2121 @c man begin DESCRIPTION
2222
23−AVplay is a very simple and portable media player using the Libav
23+avplay is a very simple and portable media player using the Libav
2424 libraries and the SDL library. It is mostly used as a testbed for the
2525 various Libav APIs.
2626 @c man end
@@ -171,7 +171,7 @@ Seek to percentage in file corresponding to fraction of width. · 144 unmodified lines
171171 @ignore
172172
173173 @setfilename avplay
174−@settitle AVplay media player
174+@settitle avplay media player
175175
176176 @c man begin SEEALSO
177177 avconv(1), avprobe(1) and the Libav HTML documentation
doc/avtools-common-opts.texi+1−1
@@ -19,7 +19,7 @@ are used to precisely specify which stream(s) does a given option belong to. · 18 unmodified lines
1919
2020 A stream specifier is a string generally appended to the option name and
2121 separated from it by a colon. E.g. @code{-codec:a:1 ac3} option contains
22−@code{a:1} stream specifer, which matches the second audio stream. Therefore it
22+@code{a:1} stream specifier, which matches the second audio stream. Therefore it
2323 would select the ac3 codec for the second audio stream.
2424
2525 A stream specifier can match several stream, the option is then applied to all
doc/avutil.txt+1−1
@@ -15,7 +15,7 @@ md5.c MD5 Message-Digest Algorithm · 14 unmodified lines
1515 rational.c code to perform exact calculations with rational numbers
1616 tree.c generic AVL tree
1717 crc.c generic CRC checksumming code
18−integer.c 128bit integer math
18+integer.c 128-bit integer math
1919 lls.c
2020 mathematics.c greatest common divisor, integer sqrt, integer log2, ...
2121 mem.c memory allocation routines with guaranteed alignment
doc/developer.texi+2−2
@@ -23,7 +23,7 @@ player. See @file{doc/examples/output.c} to use it to generate · 22 unmodified lines
2323 audio or video streams.
2424 @end itemize
2525
26−@section Integrating libav in your program
26+@section Integrating Libav in your program
2727
2828 Shared libraries should be used whenever is possible in order to reduce
2929 the effort distributors have to pour to support programs and to ensure
@@ -617,7 +617,7 @@ least make sure that it does not break anything. · 587 unmodified lines
617617 If the code changed has already a test present in FATE you should run it,
618618 otherwise it is advised to add it.
619619
620−Improvements to codec or demuxer might change the FATE results. Make sure
620+Improvements to a codec or demuxer might change the FATE results. Make sure
621621 to commit the update reference with the change and to explain in the comment
622622 why the expected result changed.
623623
doc/encoders.texi+2−2
@@ -803,8 +803,8 @@ Use @var{0} to disable alpha plane coding. · 802 unmodified lines
803803 @subsection Speed considerations
804804
805805 In the default mode of operation the encoder has to honor frame constraints
806−(i.e. not produc frames with size bigger than requested) while still making
807−output picture as good as possible.
806+(i.e. not produce frames with a size larger than requested) while still making
807+the output picture as good as possible.
808808 A frame containing a lot of small details is harder to compress and the encoder
809809 would spend more time searching for appropriate quantizers for each slice.
810810
doc/examples/avcodec.c+10−10
@@ -23,9 +23,9 @@ · 22 unmodified lines
2323 * libavcodec API use example.
2424 *
2525 * @example avcodec.c
26− * Note that this library only handles codecs (mpeg, mpeg4, etc...),
27− * not file formats (avi, vob, etc...). See library 'libavformat' for the
28− * format handling
26+ * Note that this library only handles codecs (MPEG, MPEG-4, etc...),
27+ * not file formats (AVI, VOB, etc...). See library 'libavformat' for the
28+ * format handling.
2929 */
3030
3131 #include <stdlib.h>
@@ -234,7 +234,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 202 unmodified lines
234234
235235 printf("Audio decoding\n");
236236
237− /* find the mpeg audio decoder */
237+ /* find the MPEG audio decoder */
238238 codec = avcodec_find_decoder(AV_CODEC_ID_MP2);
239239 if (!codec) {
240240 fprintf(stderr, "codec not found\n");
@@ -325,7 +325,7 @@ static void video_encode_example(const char *filename) · 84 unmodified lines
325325
326326 printf("Video encoding\n");
327327
328− /* find the mpeg1 video encoder */
328+ /* find the mpeg1video encoder */
329329 codec = avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO);
330330 if (!codec) {
331331 fprintf(stderr, "codec not found\n");
@@ -424,7 +424,7 @@ static void video_encode_example(const char *filename) · 92 unmodified lines
424424 }
425425 }
426426
427− /* add sequence end code to have a real mpeg file */
427+ /* add sequence end code to have a real MPEG file */
428428 fwrite(endcode, 1, sizeof(endcode), f);
429429 fclose(f);
430430
@@ -465,12 +465,12 @@ static void video_decode_example(const char *outfilename, const char *filename) · 34 unmodified lines
465465
466466 av_init_packet(&avpkt);
467467
468− /* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
468+ /* set end of buffer to 0 (this ensures that no overreading happens for damaged MPEG streams) */
469469 memset(inbuf + INBUF_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE);
470470
471471 printf("Video decoding\n");
472472
473− /* find the mpeg1 video decoder */
473+ /* find the MPEG-1 video decoder */
474474 codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO);
475475 if (!codec) {
476476 fprintf(stderr, "codec not found\n");
@@ -545,9 +545,9 @@ static void video_decode_example(const char *outfilename, const char *filename) · 68 unmodified lines
545545 }
546546 }
547547
548− /* some codecs, such as MPEG, transmit the I and P frame with a
548+ /* Some codecs, such as MPEG, transmit the I- and P-frame with a
549549 latency of one frame. You must do the following to have a
550− chance to get the last frame of the video */
550+ chance to get the last frame of the video. */
551551 avpkt.data = NULL;
552552 avpkt.size = 0;
553553 len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
doc/examples/output.c+1−1
@@ -365,7 +365,7 @@ static void add_video_stream(OutputStream *ost, AVFormatContext *oc, · 364 unmodified lines
365365 c->gop_size = 12; /* emit one intra frame every twelve frames at most */
366366 c->pix_fmt = STREAM_PIX_FMT;
367367 if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
368− /* just for testing, we also add B frames */
368+ /* just for testing, we also add B-frames */
369369 c->max_b_frames = 2;
370370 }
371371 if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
doc/fate.texi+3−3
@@ -11,7 +11,7 @@ · 10 unmodified lines
1111
1212 @chapter Introduction
1313
14−FATE provides a regression testsuite embedded within the Libav build system.
14+FATE provides a regression test suite embedded within the Libav build system.
1515 It can be run locally and optionally configured to send reports to a web
1616 aggregator and viewer @url{http://fate.libav.org}.
1717
@@ -24,7 +24,7 @@ and provide new tests when submitting patches to add additional features. · 6 unmodified lines
2424 In order to run, FATE needs a large amount of data (samples and references)
2525 that is provided separately from the actual source distribution.
2626
27−To inform the build system about the testsuite location, pass
27+To inform the build system about the test suite location, pass
2828 @option{--samples=<path to the samples>} to @command{configure} or set the
2929 @var{SAMPLES} Make variable or the @var{LIBAV_SAMPLES} environment variable
3030 to a suitable value.
@@ -57,7 +57,7 @@ Specific Makefile targets and Makefile variables are available: · 26 unmodified lines
5757 List all fate/regression test targets.
5858
5959 @item fate-rsync
60−Shortcut to download the fate test samples to the specified testsuite location.
60+Shortcut to download the fate test samples to the specified test suite location.
6161
6262 @item fate
6363 Run the FATE test suite (requires the fate-suite dataset).
doc/filters.texi+5−5
@@ -1541,7 +1541,7 @@ For more information, see · 1540 unmodified lines
15411541 @section gradfun
15421542
15431543 Fix the banding artifacts that are sometimes introduced into nearly flat
1544−regions by truncation to 8bit colordepth.
1544+regions by truncation to 8-bit colordepth.
15451545 Interpolate the gradients that should go where the bands are, and
15461546 dither them.
15471547
@@ -1900,7 +1900,7 @@ libopencv function @code{cvSmooth}. · 352 unmodified lines
19001900 Overlay one video on top of another.
19011901
19021902 It takes two inputs and has one output. The first input is the "main"
1903−video on which the second input is overlayed.
1903+video on which the second input is overlaid.
19041904
19051905 It accepts the following parameters:
19061906
@@ -2327,7 +2327,7 @@ select='not(mod(n\,100))' · 420 unmodified lines
23272327 # Select only frames contained in the 10-20 time interval
23282328 select='gte(t\,10)*lte(t\,20)'
23292329
2330−# Select only I frames contained in the 10-20 time interval
2330+# Select only I-frames contained in the 10-20 time interval
23312331 select='gte(t\,10)*lte(t\,20)*eq(pict_type\,I)'
23322332
23332333 # Select frames with a minimum distance of 10 seconds
@@ -2957,7 +2957,7 @@ number or a valid video frame rate abbreviation. The default value is · 623 unmodified lines
29572957
29582958 The following graph description will generate a red source
29592959 with an opacity of 0.2, with size "qcif" and a frame rate of 10
2960−frames per second, which will be overlayed over the source connected
2960+frames per second, which will be overlaid over the source connected
29612961 to the pad with identifier "in":
29622962
29632963 @example
@@ -3070,7 +3070,7 @@ A '|'-separated list of parameters to pass to the frei0r source. · 106 unmodified lines
30703070 An example:
30713071 @example
30723072 # Generate a frei0r partik0l source with size 200x200 and framerate 10
3073−# which is overlayed on the overlay filter main input
3073+# which is overlaid on the overlay filter's main input
30743074 frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234 [overlay]; [in][overlay] overlay
30753075 @end example
30763076
doc/git-howto.texi+1−1
@@ -399,7 +399,7 @@ to ensure no local changes still need to be committed and that no local · 398 unmodified lines
399399 changes may have thrown off the results of your testing.
400400 @end itemize
401401
402−Next let the code pass through a full run of our testsuite. Before you do,
402+Next let the code pass through a full run of our test suite. Before you do,
403403 the command @command{make fate-rsync} will update the test samples. Changes
404404 to the samples set are not very common and commits depending on samples
405405 changes are delayed for at least 24 hours to allow the new samples to
doc/indevs.texi+1−1
@@ -369,7 +369,7 @@ The syntax is: · 368 unmodified lines
369369 -grab_x @var{x_offset} -grab_y @var{y_offset}
370370 @end example
371371
372−Set the grabing region coordinates. The are expressed as offset from the top left
372+Set the grabbing region coordinates. The are expressed as offset from the top left
373373 corner of the X11 window. The default value is 0.
374374
375375 @c man end INPUT DEVICES
doc/nut.texi+1−1
@@ -29,7 +29,7 @@ NUT has some variants signaled by using the flags field in its main header. · 28 unmodified lines
2929
3030 The BROADCAST variant provides a secondary time reference to facilitate
3131 detecting endpoint latency and network delays.
32−It assumes all the endpoint clocks are syncronized.
32+It assumes all the endpoint clocks are synchronized.
3333 To be used in real-time scenarios.
3434
3535 @section PIPE
doc/optimization.txt+2−2
@@ -7,7 +7,7 @@ If you plan to do non-x86 architecture specific optimizations (SIMD normally), · 6 unmodified lines
77 then take a look in the x86/ directory, as most important functions are
88 already optimized for MMX.
99
10−If you want to do x86 optimizations then you can either try to finetune the
10+If you want to do x86 optimizations then you can either try to fine-tune the
1111 stuff in the x86 directory or find some other functions in the C source to
1212 optimize, but there aren't many left.
1313
@@ -163,7 +163,7 @@ general x86 registers (e.g. eax) as well as XMM registers. This last one is · 149 unmodified lines
163163 particularly important on Win64, where xmm6-15 are callee-save, and not
164164 restoring their contents leads to undefined results. In external asm (e.g.
165165 yasm), you do this by using:
166−cglobal functon_name, num_args, num_regs, num_xmm_regs
166+cglobal function_name, num_args, num_regs, num_xmm_regs
167167 In inline asm, you specify clobbered registers at the end of your asm:
168168 __asm__(".." ::: "%eax").
169169 If gcc is not set to support sse (-msse) it will not accept xmm registers
doc/platform.texi+2−2
@@ -62,7 +62,7 @@ bash ./configure · 61 unmodified lines
6262 @section Darwin (OS X, iPhone)
6363
6464 The toolchain provided with Xcode is sufficient to build the basic
65−unacelerated code.
65+unaccelerated code.
6666
6767 OS X on PowerPC or ARM (iPhone) requires a preprocessor from
6868 @url{git://git.libav.org/gas-preprocessor.git} to build the optimized
@@ -137,7 +137,7 @@ pacman -S make pkgconf diffutils · 68 unmodified lines
137137 pacman -S mingw-w64-x86_64-yasm mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL
138138 @end example
139139
140−To target 32bit replace the @code{x86_64} with @code{i686} in the command above.
140+To target 32 bits replace @code{x86_64} with @code{i686} in the command above.
141141
142142 @section Microsoft Visual C++ or Intel C++ Compiler for Windows
143143
doc/swscale.txt+2−2
@@ -10,12 +10,12 @@ Current (simplified) Architecture: · 9 unmodified lines
1010 / \
1111 special converter [Input to YUV converter]
1212 | |
13− | (8bit YUV 4:4:4 / 4:2:2 / 4:2:0 / 4:0:0 )
13+ | (8-bit YUV 4:4:4 / 4:2:2 / 4:2:0 / 4:0:0 )
1414 | |
1515 | v
1616 | Horizontal scaler
1717 | |
18− | (15bit YUV 4:4:4 / 4:2:2 / 4:2:0 / 4:1:1 / 4:0:0 )
18+ | (15-bit YUV 4:4:4 / 4:2:2 / 4:2:0 / 4:1:1 / 4:0:0 )
1919 | |
2020 | v
2121 | Vertical scaler and output converter
doc/viterbi.txt+7−7
@@ -1,7 +1,7 @@
1−This is a quick description of the viterbi aka dynamic programing
2−algorthm.
1+This is a quick description of the Viterbi aka dynamic programming
2+algorithm.
33
4−Its reason for existence is that wikipedia has become very poor on
4+Its reason for existence is that Wikipedia has become very poor on
55 describing algorithms in a way that makes it useable for understanding
66 them or anything else actually. It tends now to describe the very same
77 algorithm under 50 different names and pages with few understandable
@@ -41,7 +41,7 @@ readable) · 33 unmodified lines
4141 Our goal is to find a path from left to right through it which
4242 minimizes the sum of the score of all edges.
4343 (and of course left/right is just a convention here it could be top down too)
44−Similarly the minimum could be the maximum by just fliping the sign,
44+Similarly the minimum could be the maximum by just flipping the sign,
4545 Example of a path with scores:
4646
4747 O O O O O O O
@@ -53,7 +53,7 @@ Example of a path with scores: · 5 unmodified lines
5353 O O O O O O-1-O---> (sum here is 24)
5454
5555
56−The viterbi algorthm now solves this simply column by column
56+The Viterbi algorithm now solves this simply column by column
5757 For the previous column each point has a best path and a associated
5858 score:
5959
@@ -100,10 +100,10 @@ trivial given we know the previous column best paths and scores: · 40 unmodified lines
100100 O 0 4
101101
102102
103−the viterbi algorthm continues exactly like this column for column until the
103+the Viterbi algorithm continues exactly like this column for column until the
104104 end and then just picks the path with the best score (above that would be the
105105 one with score 3)
106106
107107
108−Author: Michael niedermayer
108+Author: Michael Niedermayer
109109 Copyright LGPL
libavcodec/aacdec.c+3−3
@@ -1916,8 +1916,8 @@ static int decode_ics(AACContext *ac, SingleChannelElement *sce, · 1915 unmodified lines
19161916 avpriv_request_sample(ac->avctx, "SSR");
19171917 return AVERROR_PATCHWELCOME;
19181918 }
1919− // I see no textual basis in the spec for this occuring after SSR gain
1920− // control, but this is what both reference and real implmentations do
1919+ // I see no textual basis in the spec for this occurring after SSR gain
1920+ // control, but this is what both reference and real implementations do
19211921 if (tns->present && er_syntax)
19221922 if (decode_tns(ac, tns, gb, ics) < 0)
19231923 return AVERROR_INVALIDDATA;
@@ -3047,7 +3047,7 @@ static av_cold int aac_decode_close(AVCodecContext *avctx) · 1123 unmodified lines
30473047
30483048 struct LATMContext {
30493049 AACContext aac_ctx; ///< containing AACContext
3050− int initialized; ///< initilized after a valid extradata was seen
3050+ int initialized; ///< initialized after a valid extradata was seen
30513051
30523052 // parser data
30533053 int audio_mux_version_A; ///< LATM syntax version
libavcodec/aacsbr.c+1−1
@@ -130,7 +130,7 @@ av_cold void ff_aac_sbr_init(void) · 129 unmodified lines
130130 /** Places SBR in pure upsampling mode. */
131131 static void sbr_turnoff(SpectralBandReplication *sbr) {
132132 sbr->start = 0;
133− // Init defults used in pure upsampling mode
133+ // Init defaults used in pure upsampling mode
134134 sbr->kx[1] = 32; //Typo in spec, kx' inits to 32
135135 sbr->m[1] = 0;
136136 // Reset values for first SBR header
libavcodec/aarch64/mpegaudiodsp_neon.S+1−1
@@ -142,7 +142,7 @@ function ff_mpadsp_apply_window_\type\()_neon, export=1 · 141 unmodified lines
142142 sub x10, x10, #4<<2
143143 b.gt 1b
144144
145−// comuting samples[16]
145+// computing samples[16]
146146 add x6, x1, #32<<2
147147 ld1 {v0.2s}, [x6], x9
148148 ld1 {v1.2s}, [x0], x9
libavcodec/aasc.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Autodesk RLE Decoder
3− * Copyright (C) 2005 the ffmpeg project
3+ * Copyright (C) 2005 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/adpcm.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2001-2003 The ffmpeg Project
2+ * Copyright (c) 2001-2003 The FFmpeg project
33 *
44 * first version by Francois Revol (revol@free.fr)
55 * fringe ADPCM codecs (e.g., DK3, DK4, Westwood)
libavcodec/adpcm.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2001-2003 The ffmpeg Project
2+ * Copyright (c) 2001-2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/adpcm_data.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2001-2003 The ffmpeg Project
2+ * Copyright (c) 2001-2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/adpcm_data.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2001-2003 The ffmpeg Project
2+ * Copyright (c) 2001-2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/adpcmenc.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (c) 2001-2003 The ffmpeg Project
2+ * Copyright (c) 2001-2003 The FFmpeg project
33 *
44 * first version by Francois Revol (revol@free.fr)
55 * fringe ADPCM codecs (e.g., DK3, DK4, Westwood)
libavcodec/alac.c+14−14
@@ -29,20 +29,20 @@ · 28 unmodified lines
2929 * passed through the extradata[_size] fields. This atom is tacked onto
3030 * the end of an 'alac' stsd atom and has the following format:
3131 *
32− * 32bit atom size
33− * 32bit tag ("alac")
34− * 32bit tag version (0)
35− * 32bit samples per frame (used when not set explicitly in the frames)
36− * 8bit compatible version (0)
37− * 8bit sample size
38− * 8bit history mult (40)
39− * 8bit initial history (14)
40− * 8bit rice param limit (10)
41− * 8bit channels
42− * 16bit maxRun (255)
43− * 32bit max coded frame size (0 means unknown)
44− * 32bit average bitrate (0 means unknown)
45− * 32bit samplerate
32+ * 32 bits atom size
33+ * 32 bits tag ("alac")
34+ * 32 bits tag version (0)
35+ * 32 bits samples per frame (used when not set explicitly in the frames)
36+ * 8 bits compatible version (0)
37+ * 8 bits sample size
38+ * 8 bits history mult (40)
39+ * 8 bits initial history (14)
40+ * 8 bits rice param limit (10)
41+ * 8 bits channels
42+ * 16 bits maxRun (255)
43+ * 32 bits max coded frame size (0 means unknown)
44+ * 32 bits average bitrate (0 means unknown)
45+ * 32 bits samplerate
4646 */
4747
4848 #include <inttypes.h>
libavcodec/alsdec.c+1−1
@@ -305,7 +305,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx) · 304 unmodified lines
305305 skip_bits_long(&gb, 32); // sample rate already known
306306 sconf->samples = get_bits_long(&gb, 32);
307307 avctx->channels = m4ac.channels;
308− skip_bits(&gb, 16); // number of channels already knwon
308+ skip_bits(&gb, 16); // number of channels already known
309309 skip_bits(&gb, 3); // skip file_type
310310 sconf->resolution = get_bits(&gb, 3);
311311 sconf->floating = get_bits1(&gb);
libavcodec/amrnbdec.c+2−2
@@ -532,13 +532,13 @@ static void decode_fixed_sparse(AMRFixed *fixed_sparse, const uint16_t *pulses, · 531 unmodified lines
532532 * @param p the context
533533 * @param subframe unpacked amr subframe
534534 * @param mode mode of the current frame
535− * @param fixed_sparse sparse respresentation of the fixed vector
535+ * @param fixed_sparse sparse representation of the fixed vector
536536 */
537537 static void pitch_sharpening(AMRContext *p, int subframe, enum Mode mode,
538538 AMRFixed *fixed_sparse)
539539 {
540540 // The spec suggests the current pitch gain is always used, but in other
541− // modes the pitch and codebook gains are joinly quantized (sec 5.8.2)
541+ // modes the pitch and codebook gains are jointly quantized (sec 5.8.2)
542542 // so the codebook gain cannot depend on the quantized pitch gain.
543543 if (mode == MODE_12k2)
544544 p->beta = FFMIN(p->pitch_gain[4], 1.0);
libavcodec/amrwbdata.h+1−1
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838
3939 #define MIN_ISF_SPACING (128.0 / 32768.0) ///< minimum isf gap
4040 #define PRED_FACTOR (1.0 / 3.0)
41−#define MIN_ENERGY -14.0 ///< initial innnovation energy (dB)
41+#define MIN_ENERGY -14.0 ///< initial innovation energy (dB)
4242 #define ENERGY_MEAN 30.0 ///< mean innovation energy (dB) in all modes
4343 #define PREEMPH_FAC 0.68 ///< factor used to de-emphasize synthesis
4444
libavcodec/ansi.c+1−1
@@ -189,7 +189,7 @@ static int execute_code(AVCodecContext * avctx, int c) · 188 unmodified lines
189189 s->y = s->nb_args > 0 ? av_clip((s->args[0] - 1)*s->font_height, 0, avctx->height - s->font_height) : 0;
190190 s->x = s->nb_args > 1 ? av_clip((s->args[1] - 1)*FONT_WIDTH, 0, avctx->width - FONT_WIDTH) : 0;
191191 break;
192− case 'h': //set creen mode
192+ case 'h': //set screen mode
193193 case 'l': //reset screen mode
194194 if (s->nb_args < 2)
195195 s->args[0] = DEFAULT_SCREEN_MODE;
libavcodec/apedec.c+2−2
@@ -359,10 +359,10 @@ static inline void range_dec_normalize(APEContext *ctx) · 358 unmodified lines
359359 }
360360
361361 /**
362− * Calculate culmulative frequency for next symbol. Does NO update!
362+ * Calculate cumulative frequency for next symbol. Does NO update!
363363 * @param ctx decoder context
364364 * @param tot_f is the total frequency or (code_value)1<<shift
365− * @return the culmulative frequency
365+ * @return the cumulative frequency
366366 */
367367 static inline int range_decode_culfreq(APEContext *ctx, int tot_f)
368368 {
libavcodec/arm/mlpdsp_armv6.S+1−1
@@ -240,7 +240,7 @@ DAT3 .req v4 · 239 unmodified lines
240240 DAT4 .req v5
241241 DAT5 .req v6
242242 DAT6 .req sl // use these rather than the otherwise unused
243−DAT7 .req fp // ip and lr so that we can load them usinf LDRD
243+DAT7 .req fp // ip and lr so that we can load them using LDRD
244244
245245 .macro output4words tail, head, r0, r1, r2, r3, r4, r5, r6, r7, pointer_dead=0
246246 .if \head
libavcodec/arm/mpegvideo_armv5te.c+1−1
@@ -28,7 +28,7 @@ void ff_dct_unquantize_h263_armv5te(int16_t *block, int qmul, int qadd, int coun · 27 unmodified lines
2828
2929 #ifdef ENABLE_ARM_TESTS
3030 /**
31− * h263 dequantizer supplementary function, it is performance critical and needs to
31+ * H.263 dequantizer supplementary function, it is performance critical and needs to
3232 * have optimized implementations for each architecture. Is also used as a reference
3333 * implementation in regression tests
3434 */
libavcodec/arm/simple_idct_arm.S+3−3
@@ -64,7 +64,7 @@ function ff_simple_idct_arm, export=1 · 63 unmodified lines
6464
6565
6666 __row_loop:
67− @@ read the row and check if it is null, almost null, or not, according to strongarm specs, it is not necessary to optimize ldr accesses (i.e. split 32bits in 2 16bits words), at least it gives more usable registers :)
67+ @@ read the row and check if it is null, almost null, or not, according to strongarm specs, it is not necessary to optimize ldr accesses (i.e. split 32 bits in two 16-bit words), at least it gives more usable registers :)
6868 ldr r1, [r14, #0] @ R1=(int32)(R12)[0]=ROWr32[0] (relative row cast to a 32b pointer)
6969 ldr r2, [r14, #4] @ R2=(int32)(R12)[1]=ROWr32[1]
7070 ldr r3, [r14, #8] @ R3=ROWr32[2]
@@ -234,8 +234,8 @@ __end_a_evaluation: · 163 unmodified lines
234234 @@ row[7] = (a0 - b0) >> ROW_SHIFT;
235235 add r8, r6, r0 @ R8=a0+b0
236236 add r9, r2, r1 @ R9=a1+b1
237− @@ put 2 16 bits half-words in a 32bits word
238− @@ ROWr32[0]=ROWr16[0] | (ROWr16[1]<<16) (only Little Endian compliant then!!!)
237+ @@ put two 16-bit half-words in a 32-bit word
238+ @@ ROWr32[0]=ROWr16[0] | (ROWr16[1]<<16) (only little-endian compliant then!!!)
239239 ldr r10, =MASK_MSHW @ R10=0xFFFF0000
240240 and r9, r10, r9, lsl #ROW_SHIFT2MSHW @ R9=0xFFFF0000 & ((a1+b1)<<5)
241241 mvn r11, r10 @ R11= NOT R10= 0x0000FFFF
libavcodec/arm/vp8dsp_neon.S+1−1
@@ -322,7 +322,7 @@ endfunc · 321 unmodified lines
322322
323323 vmov.i16 q12, #3
324324 vsubl.s8 q10, d8, d6 @ QS0 - PS0
325− vsubl.s8 q11, d9, d7 @ (widened to 16bit)
325+ vsubl.s8 q11, d9, d7 @ (widened to 16 bits)
326326 veor q2, q2, q13 @ PS1 = P1 ^ 0x80
327327 veor q5, q5, q13 @ QS1 = Q1 ^ 0x80
328328 vmul.i16 q10, q10, q12 @ w = 3 * (QS0 - PS0)
libavcodec/ass.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * SSA/ASS common funtions
2+ * SSA/ASS common functions
33 * Copyright (c) 2010 Aurelien Jacobs <aurel@gnuage.org>
44 *
55 * This file is part of Libav.
libavcodec/ass.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * SSA/ASS common funtions
2+ * SSA/ASS common functions
33 * Copyright (c) 2010 Aurelien Jacobs <aurel@gnuage.org>
44 *
55 * This file is part of Libav.
libavcodec/atrac1data.h+1−1
@@ -43,7 +43,7 @@ static const uint8_t bfu_bands_t[4] = {0, 20, 36, 52}; · 42 unmodified lines
4343 */
4444 static const uint8_t specs_per_bfu[52] = {
4545 8, 8, 8, 8, 4, 4, 4, 4, 8, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6, // low band
46− 6, 6, 6, 6, 7, 7, 7, 7, 9, 9, 9, 9, 10, 10, 10, 10, // midle band
46+ 6, 6, 6, 6, 7, 7, 7, 7, 9, 9, 9, 9, 10, 10, 10, 10, // middle band
4747 12, 12, 12, 12, 12, 12, 12, 12, 20, 20, 20, 20, 20, 20, 20, 20 // high band
4848 };
4949
libavcodec/avcodec.h+27−27
@@ -783,7 +783,7 @@ typedef struct RcOverride{ · 782 unmodified lines
783783 * Use only bitexact stuff (except (I)DCT).
784784 */
785785 #define AV_CODEC_FLAG_BITEXACT (1 << 23)
786−/* Fx : Flag for h263+ extra options */
786+/* Fx : Flag for H.263+ extra options */
787787 /**
788788 * H.263 advanced intra coding / MPEG-4 AC prediction
789789 */
@@ -869,7 +869,7 @@ typedef struct RcOverride{ · 79 unmodified lines
869869 * are connected to a parser to split what they return into proper frames.
870870 * This flag is reserved to the very rare category of codecs which have a
871871 * bitstream that cannot be split into frames without timeconsuming
872− * operations like full decoding. Demuxers carring such bitstreams thus
872+ * operations like full decoding. Demuxers carrying such bitstreams thus
873873 * may return multiple frames in a packet. This has many disadvantages like
874874 * prohibiting stream copy in many cases thus it should only be considered
875875 * as a last resort.
@@ -959,7 +959,7 @@ typedef struct RcOverride{ · 83 unmodified lines
959959 #define CODEC_FLAG_LOW_DELAY 0x00080000 ///< Force low delay.
960960 #define CODEC_FLAG_GLOBAL_HEADER 0x00400000 ///< Place global headers in extradata instead of every keyframe.
961961 #define CODEC_FLAG_BITEXACT 0x00800000 ///< Use only bitexact stuff (except (I)DCT).
962−/* Fx : Flag for h263+ extra options */
962+/* Fx : Flag for H.263+ extra options */
963963 #define CODEC_FLAG_AC_PRED 0x01000000 ///< H.263 advanced intra coding / MPEG-4 AC prediction
964964 #define CODEC_FLAG_LOOP_FILTER 0x00000800 ///< loop filter
965965 #define CODEC_FLAG_INTERLACED_ME 0x20000000 ///< interlaced motion estimation
@@ -1031,7 +1031,7 @@ typedef struct RcOverride{ · 65 unmodified lines
10311031 * are connected to a parser to split what they return into proper frames.
10321032 * This flag is reserved to the very rare category of codecs which have a
10331033 * bitstream that cannot be split into frames without timeconsuming
1034− * operations like full decoding. Demuxers carring such bitstreams thus
1034+ * operations like full decoding. Demuxers carrying such bitstreams thus
10351035 * may return multiple frames in a packet. This has many disadvantages like
10361036 * prohibiting stream copy in many cases thus it should only be considered
10371037 * as a last resort.
@@ -1097,7 +1097,7 @@ typedef struct RcOverride{ · 59 unmodified lines
10971097 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
10981098 #define MB_TYPE_QUANT 0x00010000
10991099 #define MB_TYPE_CBP 0x00020000
1100−//Note bits 24-31 are reserved for codec specific use (h264 ref0, mpeg1 0mv, ...)
1100+// Note bits 24-31 are reserved for codec specific use (H.264 ref0, MPEG-1 0mv, ...)
11011101 #endif
11021102
11031103 /**
@@ -1500,11 +1500,11 @@ typedef struct AVCodecContext { · 396 unmodified lines
15001500
15011501 /**
15021502 * some codecs need / can use extradata like Huffman tables.
1503− * mjpeg: Huffman tables
1503+ * MJPEG: Huffman tables
15041504 * rv10: additional flags
1505− * mpeg4: global headers (they can be in the bitstream or here)
1505+ * MPEG-4: global headers (they can be in the bitstream or here)
15061506 * The allocated memory should be AV_INPUT_BUFFER_PADDING_SIZE bytes larger
1507− * than extradata_size to avoid prolems if it is read with the bitstream reader.
1507+ * than extradata_size to avoid problems if it is read with the bitstream reader.
15081508 * The bytewise contents of extradata must not depend on the architecture or CPU endianness.
15091509 * - encoding: Set/allocated/freed by libavcodec.
15101510 * - decoding: Set/allocated/freed by user.
@@ -1557,7 +1557,7 @@ typedef struct AVCodecContext { · 46 unmodified lines
15571557 * picture width / height.
15581558 *
15591559 * @note Those fields may not match the values of the last
1560− * AVFrame outputted by avcodec_decode_video2 due frame
1560+ * AVFrame output by avcodec_decode_video2 due frame
15611561 * reordering.
15621562 *
15631563 * - encoding: MUST be set by user.
@@ -1573,7 +1573,7 @@ typedef struct AVCodecContext { · 9 unmodified lines
15731573 * the decoded frame is cropped before being output.
15741574 *
15751575 * @note Those field may not match the value of the last
1576− * AVFrame outputted by avcodec_receive_frame() due frame
1576+ * AVFrame output by avcodec_receive_frame() due frame
15771577 * reordering.
15781578 *
15791579 * - encoding: unused
@@ -1597,10 +1597,10 @@ typedef struct AVCodecContext { · 17 unmodified lines
15971597 /**
15981598 * Pixel format, see AV_PIX_FMT_xxx.
15991599 * May be set by the demuxer if known from headers.
1600− * May be overriden by the decoder if it knows better.
1600+ * May be overridden by the decoder if it knows better.
16011601 *
16021602 * @note This field may not match the value of the last
1603− * AVFrame outputted by avcodec_receive_frame() due frame
1603+ * AVFrame output by avcodec_receive_frame() due frame
16041604 * reordering.
16051605 *
16061606 * - encoding: Set by user.
@@ -1710,8 +1710,8 @@ typedef struct AVCodecContext { · 103 unmodified lines
17101710 #endif
17111711
17121712 /**
1713− * qscale factor between P and I-frames
1714− * If > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset).
1713+ * qscale factor between P- and I-frames
1714+ * If > 0 then the last P-frame quantizer will be used (q = lastp_q * factor + offset).
17151715 * If < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset).
17161716 * - encoding: Set by user.
17171717 * - decoding: unused
@@ -1921,7 +1921,7 @@ typedef struct AVCodecContext { · 203 unmodified lines
19211921 */
19221922 int slice_flags;
19231923 #define SLICE_FLAG_CODED_ORDER 0x0001 ///< draw_horiz_band() is called in coded order instead of display
1924−#define SLICE_FLAG_ALLOW_FIELD 0x0002 ///< allow draw_horiz_band() with field slices (MPEG2 field pics)
1924+#define SLICE_FLAG_ALLOW_FIELD 0x0002 ///< allow draw_horiz_band() with field slices (MPEG-2 field pics)
19251925 #define SLICE_FLAG_ALLOW_PLANE 0x0004 ///< allow draw_horiz_band() with 1 component at a time (SVQ1)
19261926
19271927 #if FF_API_XVMC
@@ -2012,14 +2012,14 @@ typedef struct AVCodecContext { · 84 unmodified lines
20122012 #endif
20132013
20142014 /**
2015− * minimum MB lagrange multipler
2015+ * minimum MB Lagrange multiplier
20162016 * - encoding: Set by user.
20172017 * - decoding: unused
20182018 */
20192019 int mb_lmin;
20202020
20212021 /**
2022− * maximum MB lagrange multipler
2022+ * maximum MB Lagrange multiplier
20232023 * - encoding: Set by user.
20242024 * - decoding: unused
20252025 */
@@ -2238,7 +2238,7 @@ typedef struct AVCodecContext { · 212 unmodified lines
22382238 * to all data planes. data[] must hold as many pointers as it can.
22392239 * extended_data must be allocated with av_malloc() and will be freed in
22402240 * av_frame_unref().
2241− * * otherwise exended_data must point to data
2241+ * * otherwise extended_data must point to data
22422242 * - buf[] must contain one or more pointers to AVBufferRef structures. Each of
22432243 * the frame's data and extended_data pointers must be contained in these. That
22442244 * is, one AVBufferRef for each allocated chunk of memory, not necessarily one
@@ -2580,7 +2580,7 @@ typedef struct AVCodecContext { · 335 unmodified lines
25802580 #define FF_BUG_TRUNCATED 16384
25812581
25822582 /**
2583− * strictly follow the standard (MPEG4, ...).
2583+ * strictly follow the standard (MPEG-4, ...).
25842584 * - encoding: Set by user.
25852585 * - decoding: Set by user.
25862586 * Setting this to STRICT or higher means the encoder and decoder will
@@ -2646,9 +2646,9 @@ typedef struct AVCodecContext { · 59 unmodified lines
26462646 */
26472647 attribute_deprecated
26482648 int debug_mv;
2649−#define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
2650−#define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
2651−#define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
2649+#define FF_DEBUG_VIS_MV_P_FOR 0x00000001 // visualize forward predicted MVs of P-frames
2650+#define FF_DEBUG_VIS_MV_B_FOR 0x00000002 // visualize forward predicted MVs of B-frames
2651+#define FF_DEBUG_VIS_MV_B_BACK 0x00000004 // visualize backward predicted MVs of B-frames
26522652 #endif
26532653
26542654 /**
@@ -2670,7 +2670,7 @@ typedef struct AVCodecContext { · 15 unmodified lines
26702670 #define AV_EF_EXPLODE (1<<3)
26712671
26722672 /**
2673− * opaque 64bit number (generally a PTS) that will be reordered and
2673+ * opaque 64-bit number (generally a PTS) that will be reordered and
26742674 * output in AVFrame.reordered_opaque
26752675 * - encoding: unused
26762676 * - decoding: Set by user.
@@ -2855,7 +2855,7 @@ typedef struct AVCodecContext { · 178 unmodified lines
28552855 int (*execute2)(struct AVCodecContext *c, int (*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count);
28562856
28572857 /**
2858− * noise vs. sse weight for the nsse comparsion function
2858+ * noise vs. sse weight for the nsse comparison function
28592859 * - encoding: Set by user.
28602860 * - decoding: unused
28612861 */
@@ -3426,7 +3426,7 @@ typedef struct AVSubtitleRect { · 564 unmodified lines
34263426
34273427 /**
34283428 * 0 terminated ASS/SSA compatible event line.
3429− * The pressentation of this is unaffected by the other values in this
3429+ * The presentation of this is unaffected by the other values in this
34303430 * struct.
34313431 */
34323432 char *ass;
@@ -4153,7 +4153,7 @@ int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, · 720 unmodified lines
41534153 * next call to this function or until closing or flushing the
41544154 * decoder. The caller may not write to it.
41554155 *
4156− * @param[in] avpkt The input AVpacket containing the input buffer.
4156+ * @param[in] avpkt The input AVPacket containing the input buffer.
41574157 * You can create such packet with av_init_packet() and by then setting
41584158 * data and size, some decoders might in addition need other fields like
41594159 * flags&AV_PKT_FLAG_KEY. All decoders are designed to use the least
@@ -5172,7 +5172,7 @@ unsigned int av_xiphlacing(unsigned char *s, unsigned int v); · 1012 unmodified lines
51725172 * a pointer to an AVClass struct
51735173 * @param[in] feature string containing the name of the missing feature
51745174 * @param[in] want_sample indicates if samples are wanted which exhibit this feature.
5175− * If want_sample is non-zero, additional verbage will be added to the log
5175+ * If want_sample is non-zero, additional verbiage will be added to the log
51765176 * message which tells the user how to report samples to the development
51775177 * mailing list.
51785178 * @deprecated Use avpriv_report_missing_feature() instead.
libavcodec/bink.c+1−1
@@ -1236,7 +1236,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac · 1235 unmodified lines
12361236 }
12371237
12381238 /**
1239− * Caclulate quantization tables for version b
1239+ * Calculate quantization tables for version b
12401240 */
12411241 static av_cold void binkb_calc_quant(void)
12421242 {
libavcodec/bitstream.c+2−2
@@ -146,7 +146,7 @@ static int compare_vlcspec(const void *a, const void *b) · 145 unmodified lines
146146 /**
147147 * Build VLC decoding tables suitable for use with get_vlc().
148148 *
149− * @param vlc the context to be initted
149+ * @param vlc the context to be initialized
150150 *
151151 * @param table_nb_bits max length of vlc codes to store directly in this table
152152 * (Longer codes are delegated to subtables.)
@@ -240,7 +240,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, · 87 unmodified lines
240240
241241 /* Build VLC decoding tables suitable for use with get_vlc().
242242
243− 'nb_bits' set thee decoding table size (2^nb_bits) entries. The
243+ 'nb_bits' sets the decoding table size (2^nb_bits) entries. The
244244 bigger it is, the faster is the decoding. But it should not be too
245245 big to save memory and L1 cache. '9' is a good compromise.
246246
libavcodec/bsf.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "avcodec.h"
2323
2424 /**
25− * Called by the biststream filters to get the next packet for filtering.
25+ * Called by the bitstream filters to get the next packet for filtering.
2626 * The filter is responsible for either freeing the packet or passing it to the
2727 * caller.
2828 */
libavcodec/cinepak.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Cinepak Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/cook.c+3−3
@@ -140,7 +140,7 @@ typedef struct cook { · 139 unmodified lines
140140 VLC envelope_quant_index[13];
141141 VLC sqvh[7]; // scalar quantization
142142
143− /* generatable tables and related variables */
143+ /* generate tables and related variables */
144144 int gain_size_factor;
145145 float gain_table[23];
146146
@@ -1170,7 +1170,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) · 1023 unmodified lines
11701170 /* Initialize variable relations */
11711171 q->subpacket[s].numvector_size = (1 << q->subpacket[s].log2_numvector_size);
11721172
1173− /* Try to catch some obviously faulty streams, othervise it might be exploitable */
1173+ /* Try to catch some obviously faulty streams, otherwise it might be exploitable */
11741174 if (q->subpacket[s].total_subbands > 53) {
11751175 avpriv_request_sample(avctx, "total_subbands > 53");
11761176 return AVERROR_PATCHWELCOME;
@@ -1234,7 +1234,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) · 57 unmodified lines
12341234 q->saturate_output = saturate_output_float;
12351235 }
12361236
1237− /* Try to catch some obviously faulty streams, othervise it might be exploitable */
1237+ /* Try to catch some obviously faulty streams, otherwise it might be exploitable */
12381238 if (q->samples_per_channel != 256 && q->samples_per_channel != 512 &&
12391239 q->samples_per_channel != 1024) {
12401240 avpriv_request_sample(avctx, "samples_per_channel = %d",
libavcodec/cookdata.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323 /**
2424 * @file
25− * Cook AKA RealAudio G2 compatible decoderdata
25+ * Cook AKA RealAudio G2 compatible decoder data
2626 */
2727
2828 #ifndef AVCODEC_COOKDATA_H
libavcodec/cyuv.c+1−1
@@ -4,7 +4,7 @@ · 3 unmodified lines
44 * based on "Creative YUV (CYUV) stream format for AVI":
55 * http://www.csse.monash.edu.au/~timf/videocodec/cyuv.txt
66 *
7− * Copyright (C) 2003 the ffmpeg project
7+ * Copyright (C) 2003 The FFmpeg project
88 *
99 * This file is part of Libav.
1010 *
libavcodec/dcadata.c+3−3
@@ -47,7 +47,7 @@ const uint8_t ff_dca_bits_per_sample[7] = { · 46 unmodified lines
4747
4848 /* ADPCM data */
4949
50−/* 16bits signed fractional Q13 binary codes */
50+/* 16 bits signed fractional Q13 binary codes */
5151 const int16_t ff_dca_adpcm_vb[4096][4] = {
5252 { 9928, -2618, -1093, -1263 },
5353 { 11077, -2876, -1747, -308 },
@@ -4179,7 +4179,7 @@ const uint32_t ff_dca_scale_factor_quant7[128] = { · 4125 unmodified lines
41794179 5011872, 5688529, 6456542, 7328245, 8317638, 0, 0, 0
41804180 };
41814181
4182−/* 20bits unsigned fractional binary codes */
4182+/* 20 bits unsigned fractional binary codes */
41834183 const uint32_t ff_dca_lossy_quant[32] = {
41844184 0, 6710886, 4194304, 3355443, 2474639, 2097152, 1761608, 1426063,
41854185 796918, 461373, 251658, 146801, 79692, 46137, 27263, 16777,
@@ -4187,7 +4187,7 @@ const uint32_t ff_dca_lossy_quant[32] = { · 1 unmodified line
41874187 84, 42, 21, 0, 0, 0, 0, 0
41884188 };
41894189
4190−/* 20bits unsigned fractional binary codes */
4190+/* 20 bits unsigned fractional binary codes */
41914191 const uint32_t ff_dca_lossless_quant[32] = {
41924192 0, 4194304, 2097152, 1384120, 1048576, 696254, 524288, 348127,
41934193 262144, 131072, 65431, 33026, 16450, 8208, 4100, 2049,
libavcodec/dcadec.c+1−1
@@ -1348,7 +1348,7 @@ static int set_channel_layout(AVCodecContext *avctx, int channels, int num_core_ · 1347 unmodified lines
13481348 ff_dlog(s->avctx, "\n");
13491349 }
13501350 } else {
1351− av_log(avctx, AV_LOG_ERROR, "Non standard configuration %d !\n", s->amode);
1351+ av_log(avctx, AV_LOG_ERROR, "Nonstandard configuration %d !\n", s->amode);
13521352 return AVERROR_INVALIDDATA;
13531353 }
13541354
libavcodec/dct-test.c+1−1
@@ -394,7 +394,7 @@ static void help(void) · 393 unmodified lines
394394 printf("dct-test [-i] [<test-number>]\n"
395395 "test-number 0 -> test with random matrixes\n"
396396 " 1 -> test with random sparse matrixes\n"
397− " 2 -> do 3. test from mpeg4 std\n"
397+ " 2 -> do 3. test from MPEG-4 std\n"
398398 "-i test IDCT implementations\n"
399399 "-4 test IDCT248 implementations\n"
400400 "-t speed test\n");
libavcodec/dnxhddata.h+1−1
@@ -40,7 +40,7 @@ typedef struct CIDEntry { · 39 unmodified lines
4040 const uint8_t *ac_run_flag, *ac_index_flag;
4141 const uint16_t *run_codes;
4242 const uint8_t *run_bits, *run;
43− int bit_rates[5]; ///< Helpher to choose variants, rounded to nearest 5Mb/s
43+ int bit_rates[5]; ///< Helper to choose variants, rounded to nearest 5Mb/s
4444 } CIDEntry;
4545
4646 extern const CIDEntry ff_dnxhd_cid_table[];
libavcodec/dnxhdenc.c+1−1
@@ -36,7 +36,7 @@ · 35 unmodified lines
3636 #include "pixblockdsp.h"
3737 #include "dnxhdenc.h"
3838
39−// The largest value that will not lead to overflow for 10bit samples.
39+// The largest value that will not lead to overflow for 10-bit samples.
4040 #define DNX10BIT_QMAT_SHIFT 18
4141 #define RC_VARIANCE 1 // use variance or ssd for fast rc
4242 #define LAMBDA_FRAC_BITS 10
libavcodec/dpcm.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Assorted DPCM codecs
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/dxva2_h264.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * DXVA2 H264 HW acceleration.
2+ * DXVA2 H.264 HW acceleration.
33 *
44 * copyright (c) 2009 Laurent Aimar
55 *
libavcodec/eamad.c+2−2
@@ -41,8 +41,8 @@ · 40 unmodified lines
4141 #include "mpeg12vlc.h"
4242
4343 #define EA_PREAMBLE_SIZE 8
44−#define MADk_TAG MKTAG('M', 'A', 'D', 'k') /* MAD i-frame */
45−#define MADm_TAG MKTAG('M', 'A', 'D', 'm') /* MAD p-frame */
44+#define MADk_TAG MKTAG('M', 'A', 'D', 'k') /* MAD I-frame */
45+#define MADm_TAG MKTAG('M', 'A', 'D', 'm') /* MAD P-frame */
4646 #define MADe_TAG MKTAG('M', 'A', 'D', 'e') /* MAD lqp-frame */
4747
4848 typedef struct MadContext {
libavcodec/elbg.c+2−2
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "elbg.h"
3131 #include "avcodec.h"
3232
33−#define DELTA_ERR_MAX 0.1 ///< Precision of the ELBG algorithm (as percentual error)
33+#define DELTA_ERR_MAX 0.1 ///< Precision of the ELBG algorithm (as percentage error)
3434
3535 /**
3636 * In the ELBG jargon, a cell is the set of points that are closest to a
@@ -189,7 +189,7 @@ static void get_new_centroids(elbg_data *elbg, int huc, int *newcentroid_i, · 152 unmodified lines
189189
190190 /**
191191 * Add the points in the low utility cell to its closest cell. Split the high
192− * utility cell, putting the separed points in the (now empty) low utility
192+ * utility cell, putting the separated points in the (now empty) low utility
193193 * cell.
194194 *
195195 * @param elbg Internal elbg data
libavcodec/error_resilience.c+1−1
@@ -1047,7 +1047,7 @@ void ff_er_frame_end(ERContext *s) · 1046 unmodified lines
10471047 s->mv[0][0][1] = s->cur_pic.motion_val[dir][mb_x * 2 + mb_y * 2 * s->b8_stride][1];
10481048 }
10491049
1050− s->decode_mb(s->opaque, 0 /* FIXME h264 partitioned slices need this set */,
1050+ s->decode_mb(s->opaque, 0 /* FIXME H.264 partitioned slices need this set */,
10511051 mv_dir, mv_type, &s->mv, mb_x, mb_y, 0, 0);
10521052 }
10531053 }
libavcodec/error_resilience.h+1−1
@@ -41,7 +41,7 @@ typedef struct ERPicture { · 40 unmodified lines
4141 AVFrame *f;
4242 ThreadFrame *tf;
4343
44− // it's the caller responsability to allocate these buffers
44+ // it is the caller's responsibility to allocate these buffers
4545 int16_t (*motion_val[2])[2];
4646 int8_t *ref_index[2];
4747
libavcodec/exr.c+5−5
@@ -159,13 +159,13 @@ static union av_intfloat32 exr_half2float(uint16_t hf) · 158 unmodified lines
159159 mantissa <<= 1;
160160 exp -= (1 << 23);
161161 }
162− // clamp the mantissa to 10-bits
162+ // clamp the mantissa to 10 bits
163163 mantissa &= ((1 << 10) - 1);
164− // shift left to generate single-precision mantissa of 23-bits
164+ // shift left to generate single-precision mantissa of 23 bits
165165 mantissa <<= 13;
166166 }
167167 } else {
168− // shift left to generate single-precision mantissa of 23-bits
168+ // shift left to generate single-precision mantissa of 23 bits
169169 mantissa <<= 13;
170170 // generate single precision biased exponent value
171171 exp = (exp << 13) + HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP;
@@ -1381,7 +1381,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 1209 unmodified lines
13811381 }
13821382 }
13831383
1384− // allocate thread data, used for non EXR_RAW compreesion types
1384+ // allocate thread data, used for non EXR_RAW compression types
13851385 s->thread_data = av_mallocz_array(avctx->thread_count, sizeof(EXRThreadData));
13861386 if (!s->thread_data)
13871387 return AVERROR_INVALIDDATA;
@@ -1392,7 +1392,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 4 unmodified lines
13921392 static int decode_init_thread_copy(AVCodecContext *avctx)
13931393 { EXRContext *s = avctx->priv_data;
13941394
1395− // allocate thread data, used for non EXR_RAW compreesion types
1395+ // allocate thread data, used for non EXR_RAW compression types
13961396 s->thread_data = av_mallocz_array(avctx->thread_count, sizeof(EXRThreadData));
13971397 if (!s->thread_data)
13981398 return AVERROR_INVALIDDATA;
libavcodec/faxcompr.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 #include "tiff.h"
3232
3333 /**
34− * initialize upacker code
34+ * initialize unpacker code
3535 */
3636 void ff_ccitt_unpack_init(void);
3737
libavcodec/flicvideo.c+3−3
@@ -1,6 +1,6 @@
11 /*
22 * FLI/FLC Animation Video Decoder
3− * Copyright (C) 2003, 2004 the ffmpeg project
3+ * Copyright (C) 2003, 2004 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -115,7 +115,7 @@ static av_cold int flic_decode_init(AVCodecContext *avctx) · 108 unmodified lines
115115 case 8 : avctx->pix_fmt = AV_PIX_FMT_PAL8; break;
116116 case 15 : avctx->pix_fmt = AV_PIX_FMT_RGB555; break;
117117 case 16 : avctx->pix_fmt = AV_PIX_FMT_RGB565; break;
118− case 24 : avctx->pix_fmt = AV_PIX_FMT_BGR24; /* Supposedly BGR, but havent any files to test with */
118+ case 24 : avctx->pix_fmt = AV_PIX_FMT_BGR24; /* Supposedly BGR, but no files to test with */
119119 av_log(avctx, AV_LOG_ERROR, "24Bpp FLC/FLX is unsupported due to no test files.\n");
120120 return AVERROR_PATCHWELCOME;
121121 default :
@@ -725,7 +725,7 @@ static int flic_decode_frame(AVCodecContext *avctx, · 603 unmodified lines
725725
726726 /* Should not get here, ever as the pix_fmt is processed */
727727 /* in flic_decode_init and the above if should deal with */
728− /* the finite set of possibilites allowable by here. */
728+ /* the finite set of possibilities allowable by here. */
729729 /* But in case we do, just error out. */
730730 av_log(avctx, AV_LOG_ERROR, "Unknown FLC format, my science cannot explain how this happened.\n");
731731 return AVERROR_BUG;
libavcodec/flvenc.c+1−1
@@ -31,7 +31,7 @@ void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number) · 30 unmodified lines
3131 avpriv_align_put_bits(&s->pb);
3232
3333 put_bits(&s->pb, 17, 1);
34− /* 0: h263 escape codes 1: 11-bit escape codes */
34+ /* 0: H.263 escape codes 1: 11-bit escape codes */
3535 put_bits(&s->pb, 5, (s->h263_flv - 1));
3636 put_bits(&s->pb, 8,
3737 (((int64_t) s->picture_number * 30 * s->avctx->time_base.num) / // FIXME use timestamp
libavcodec/g723_1dec.c+2−2
@@ -483,7 +483,7 @@ static int comp_interp_index(G723_1_Context *p, int pitch_lag, · 482 unmodified lines
483483 }
484484
485485 /**
486− * Peform residual interpolation based on frame classification.
486+ * Perform residual interpolation based on frame classification.
487487 *
488488 * @param buf decoded excitation vector
489489 * @param out output vector
@@ -931,7 +931,7 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data, · 441 unmodified lines
931931 p->interp_index = comp_interp_index(p, p->pitch_lag[1],
932932 &p->sid_gain, &p->cur_gain);
933933
934− /* Peform pitch postfiltering */
934+ /* Perform pitch postfiltering */
935935 if (p->postfilter) {
936936 i = PITCH_MAX;
937937 for (j = 0; j < SUBFRAMES; i += SUBFRAME_LEN, j++)
libavcodec/g726.c+13−13
@@ -31,15 +31,15 @@ · 30 unmodified lines
3131 #include "put_bits.h"
3232
3333 /**
34− * G.726 11bit float.
35− * G.726 Standard uses rather odd 11bit floating point arithmentic for
34+ * G.726 11-bit float.
35+ * G.726 Standard uses rather odd 11-bit floating point arithmetic for
3636 * numerous occasions. It's a mystery to me why they did it this way
37− * instead of simply using 32bit integer arithmetic.
37+ * instead of simply using 32-bit integer arithmetic.
3838 */
3939 typedef struct Float11 {
40− uint8_t sign; /**< 1bit sign */
41− uint8_t exp; /**< 4bit exponent */
42− uint8_t mant; /**< 6bit mantissa */
40+ uint8_t sign; /**< 1 bit sign */
41+ uint8_t exp; /**< 4 bits exponent */
42+ uint8_t mant; /**< 6 bits mantissa */
4343 } Float11;
4444
4545 static inline Float11* i2f(int i, Float11* f)
@@ -97,7 +97,7 @@ typedef struct G726Context { · 51 unmodified lines
9797 int code_size;
9898 } G726Context;
9999
100−static const int quant_tbl16[] = /**< 16kbit/s 2bits per sample */
100+static const int quant_tbl16[] = /**< 16kbit/s 2 bits per sample */
101101 { 260, INT_MAX };
102102 static const int16_t iquant_tbl16[] =
103103 { 116, 365, 365, 116 };
@@ -106,7 +106,7 @@ static const int16_t W_tbl16[] = · 2 unmodified lines
106106 static const uint8_t F_tbl16[] =
107107 { 0, 7, 7, 0 };
108108
109−static const int quant_tbl24[] = /**< 24kbit/s 3bits per sample */
109+static const int quant_tbl24[] = /**< 24kbit/s 3 bits per sample */
110110 { 7, 217, 330, INT_MAX };
111111 static const int16_t iquant_tbl24[] =
112112 { INT16_MIN, 135, 273, 373, 373, 273, 135, INT16_MIN };
@@ -115,7 +115,7 @@ static const int16_t W_tbl24[] = · 2 unmodified lines
115115 static const uint8_t F_tbl24[] =
116116 { 0, 1, 2, 7, 7, 2, 1, 0 };
117117
118−static const int quant_tbl32[] = /**< 32kbit/s 4bits per sample */
118+static const int quant_tbl32[] = /**< 32kbit/s 4 bits per sample */
119119 { -125, 79, 177, 245, 299, 348, 399, INT_MAX };
120120 static const int16_t iquant_tbl32[] =
121121 { INT16_MIN, 4, 135, 213, 273, 323, 373, 425,
@@ -126,7 +126,7 @@ static const int16_t W_tbl32[] = · 4 unmodified lines
126126 static const uint8_t F_tbl32[] =
127127 { 0, 0, 0, 1, 1, 1, 3, 7, 7, 3, 1, 1, 1, 0, 0, 0 };
128128
129−static const int quant_tbl40[] = /**< 40kbit/s 5bits per sample */
129+static const int quant_tbl40[] = /**< 40kbit/s 5 bits per sample */
130130 { -122, -16, 67, 138, 197, 249, 297, 338,
131131 377, 412, 444, 474, 501, 527, 552, INT_MAX };
132132 static const int16_t iquant_tbl40[] =
@@ -151,7 +151,7 @@ static const G726Tables G726Tables_pool[] = · 18 unmodified lines
151151
152152
153153 /**
154− * Para 4.2.2 page 18: Adaptive quantizer.
154+ * Paragraph 4.2.2 page 18: Adaptive quantizer.
155155 */
156156 static inline uint8_t quant(G726Context* c, int d)
157157 {
@@ -177,14 +177,14 @@ static inline uint8_t quant(G726Context* c, int d) · 19 unmodified lines
177177 }
178178
179179 /**
180− * Para 4.2.3 page 22: Inverse adaptive quantizer.
180+ * Paragraph 4.2.3 page 22: Inverse adaptive quantizer.
181181 */
182182 static inline int16_t inverse_quant(G726Context* c, int i)
183183 {
184184 int dql, dex, dqt;
185185
186186 dql = c->tbls.iquant[i] + (c->y >> 2);
187− dex = (dql>>7) & 0xf; /* 4bit exponent */
187+ dex = (dql>>7) & 0xf; /* 4-bit exponent */
188188 dqt = (1<<7) + (dql & 0x7f); /* log2 -> linear */
189189 return (dql < 0) ? 0 : ((dqt<<dex) >> 7);
190190 }
libavcodec/get_bits.h+2−2
@@ -92,7 +92,7 @@ typedef struct RL_VLC_ELEM { · 91 unmodified lines
9292 *
9393 * GET_CACHE(name, gb)
9494 * Will output the contents of the internal cache,
95− * next bit is MSB of 32 or 64 bit (FIXME 64bit).
95+ * next bit is MSB of 32 or 64 bits (FIXME 64 bits).
9696 *
9797 * SHOW_UBITS(name, gb, num)
9898 * Will return the next num bits.
@@ -207,7 +207,7 @@ static inline void skip_bits_long(GetBitContext *s, int n) · 108 unmodified lines
207207 }
208208
209209 /**
210− * read mpeg1 dc style vlc (sign bit + mantisse with no MSB).
210+ * Read MPEG-1 dc-style VLC (sign bit + mantisse with no MSB).
211211 * if MSB not set it is negative
212212 * @param n length in bits
213213 */
libavcodec/h261.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H261 common code
2+ * H.261 common code
33 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
44 * Copyright (c) 2004 Maarten Daniels
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * h261codec.
25+ * H.261 codec
2626 */
2727
2828 #include "avcodec.h"
libavcodec/h261.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H261 decoder
2+ * H.261 codec
33 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
44 * Copyright (c) 2004 Maarten Daniels
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * h261codec.
25+ * H.261 codec.
2626 */
2727
2828 #ifndef AVCODEC_H261_H
libavcodec/h261_parser.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H261 parser
2+ * H.261 parser
33 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
44 * Copyright (c) 2004 Maarten Daniels
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * h261codec.
25+ * H.261 parser
2626 */
2727
2828 #include "parser.h"
libavcodec/h261dec.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H261 decoder
2+ * H.261 decoder
33 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
44 * Copyright (c) 2004 Maarten Daniels
55 *
@@ -580,7 +580,7 @@ retry: · 574 unmodified lines
580580 init_get_bits(&s->gb, buf, buf_size * 8);
581581
582582 if (!s->context_initialized)
583− // we need the IDCT permutaton for reading a custom matrix
583+ // we need the IDCT permutation for reading a custom matrix
584584 ff_mpv_idct_init(s);
585585
586586 ret = h261_decode_picture_header(h);
libavcodec/h261enc.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * H261 encoder
2+ * H.261 encoder
33 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
44 * Copyright (c) 2004 Maarten Daniels
55 *
libavcodec/h263.c+4−4
@@ -1,7 +1,7 @@
11 /*
2− * H263/MPEG4 backend for encoder and decoder
2+ * H.263/MPEG-4 backend for encoder and decoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
4− * H263+ support.
4+ * H.263+ support.
55 * Copyright (c) 2001 Juan J. Sierralta P
66 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
77 *
@@ -24,7 +24,7 @@ · 16 unmodified lines
2424
2525 /**
2626 * @file
27− * h263/mpeg4 codec.
27+ * H.263/MPEG-4 codec.
2828 */
2929
3030 #include <limits.h>
@@ -320,7 +320,7 @@ int16_t *ff_h263_pred_motion(MpegEncContext * s, int block, int dir, · 289 unmodified lines
320320 A = mot_val[ - 1];
321321 /* special case for first (slice) line */
322322 if (s->first_slice_line && block<3) {
323− // we can't just change some MVs to simulate that as we need them for the B frames (and ME)
323+ // we can't just change some MVs to simulate that as we need them for the B-frames (and ME)
324324 // and if we ever support non rectangular objects than we need to do a few ifs here anyway :(
325325 if(block==0){ //most common case
326326 if(s->mb_x == s->resync_mb_x){ //rare
libavcodec/h263.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H263 internal header
2+ * H.263 internal header
33 *
44 * This file is part of Libav.
55 *
@@ -87,7 +87,7 @@ int ff_h263_decode_mb(MpegEncContext *s, · 81 unmodified lines
8787 int16_t block[6][64]);
8888
8989 /**
90− * Return the value of the 3bit "source format" syntax element.
90+ * Return the value of the 3-bit "source format" syntax element.
9191 * This represents some standard picture dimensions or indicates that
9292 * width&height are explicitly stored later.
9393 */
libavcodec/h263data.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * H263+ tables
2+ * H.263+ tables
33 *
44 * This file is part of Libav.
55 *
libavcodec/h263data.h+1−1
@@ -1,6 +1,6 @@
11 /*
22 * copyright (c) 2000,2001 Fabrice Bellard
3− * H263+ support
3+ * H.263+ support
44 * copyright (c) 2001 Juan J. Sierralta P
55 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
66 *
libavcodec/h263dec.c+4−4
@@ -117,7 +117,7 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) · 116 unmodified lines
117117 }
118118 s->codec_id = avctx->codec->id;
119119
120− /* for h263, we allocate the images after having read the header */
120+ /* for H.263, we allocate the images after having read the header */
121121 if (avctx->codec->id != AV_CODEC_ID_H263 &&
122122 avctx->codec->id != AV_CODEC_ID_MPEG4) {
123123 avctx->pix_fmt = h263_get_format(avctx);
@@ -422,7 +422,7 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, · 298 unmodified lines
422422 return ret;
423423
424424 if (!s->context_initialized)
425− // we need the idct permutaton for reading a custom matrix
425+ // we need the idct permutation for reading a custom matrix
426426 ff_mpv_idct_init(s);
427427
428428 /* let's go :-) */
@@ -494,9 +494,9 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, · 65 unmodified lines
494494 SET_QPEL_FUNC(qpel_pixels_tab[1][15], qpel8_mc33_old_c)
495495 }
496496
497− /* After H263 & mpeg4 header decode we have the height, width,
497+ /* After H.263 & MPEG-4 header decode we have the height, width,
498498 * and other parameters. So then we could init the picture.
499− * FIXME: By the way H263 decoder is evolving it should have
499+ * FIXME: By the way H.263 decoder is evolving it should have
500500 * an H263EncContext */
501501 if (s->width != avctx->coded_width ||
502502 s->height != avctx->coded_height ||
libavcodec/h264.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 codec.
24+ * H.264 / AVC / MPEG-4 part10 codec.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264.h+5−5
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 codec.
24+ * H.264 / AVC / MPEG-4 part10 codec.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -418,7 +418,7 @@ typedef struct H264SliceContext { · 390 unmodified lines
418418
419419 DECLARE_ALIGNED(8, uint16_t, sub_mb_type)[4];
420420
421− ///< as a dct coeffecient is int32_t in high depth, we need to reserve twice the space.
421+ ///< as a DCT coefficient is int32_t in high depth, we need to reserve twice the space.
422422 DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2];
423423 DECLARE_ALIGNED(16, int16_t, mb_luma_dc)[3][16 * 2];
424424 ///< as mb is addressed by scantable[i] and scantable is uint8_t we can either
@@ -456,7 +456,7 @@ typedef struct H264Context { · 31 unmodified lines
456456
457457 H2645Packet pkt;
458458
459− int pixel_shift; ///< 0 for 8-bit H264, 1 for high-bit-depth H264
459+ int pixel_shift; ///< 0 for 8-bit H.264, 1 for high-bit-depth H.264
460460
461461 /* coded dimensions -- 16 * mb w/h */
462462 int width, height;
@@ -534,7 +534,7 @@ typedef struct H264Context { · 71 unmodified lines
534534 int nal_unit_type;
535535
536536 /**
537− * Used to parse AVC variant of h264
537+ * Used to parse AVC variant of H.264
538538 */
539539 int is_avc; ///< this flag is != 0 if codec is avc1
540540 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4)
@@ -580,7 +580,7 @@ typedef struct H264Context { · 39 unmodified lines
580580 * @{
581581 */
582582 /**
583− * current slice number, used to initalize slice_num of each thread/context
583+ * current slice number, used to initialize slice_num of each thread/context
584584 */
585585 int current_slice;
586586
libavcodec/h2645_parse.h+1−1
@@ -55,7 +55,7 @@ typedef struct H2645NAL { · 54 unmodified lines
5555 int temporal_id;
5656
5757 /**
58− * H264 only, nal_ref_idc
58+ * H.264 only, nal_ref_idc
5959 */
6060 int ref_idc;
6161 } H2645NAL;
libavcodec/h264_cabac.c+2−2
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 cabac decoding.
24+ * H.264 / AVC / MPEG-4 part10 cabac decoding.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -56,7 +56,7 @@ static const int8_t cabac_context_init_I[1024][2] = · 28 unmodified lines
5656 { 2, 54 }, { 3, 74 }, { -28,127 }, { -23, 104 },
5757 { -6, 53 }, { -1, 54 }, { 7, 51 },
5858
59− /* 11 - 23 unsused for I */
59+ /* 11 - 23 unused for I */
6060 { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
6161 { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
6262 { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 },
libavcodec/h264_cavlc.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 cavlc bitstream decoding.
24+ * H.264 / AVC / MPEG-4 part10 cavlc bitstream decoding.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_direct.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 direct mb/block decoding.
24+ * H.264 / AVC / MPEG-4 part10 direct mb/block decoding.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_loopfilter.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 loop filter.
24+ * H.264 / AVC / MPEG-4 part10 loop filter.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_mb.c+2−2
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 macroblock decoding
24+ * H.264 / AVC / MPEG-4 part10 macroblock decoding
2525 */
2626
2727 #include <stdint.h>
@@ -90,7 +90,7 @@ static inline void get_lowest_part_y(const H264Context *h, H264SliceContext *sl, · 62 unmodified lines
9090 /**
9191 * Wait until all reference frames are available for MC operations.
9292 *
93− * @param h the H264 context
93+ * @param h the H.264 context
9494 */
9595 static void await_references(const H264Context *h, H264SliceContext *sl)
9696 {
libavcodec/h264_mvpred.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H.26L/H.264/AVC/JVT/14496-10/... motion vector predicion
2+ * H.26L/H.264/AVC/JVT/14496-10/... motion vector prediction
33 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
44 *
55 * This file is part of Libav.
@@ -21,7 +21,7 @@ · 15 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 motion vector predicion.
24+ * H.264 / AVC / MPEG-4 part10 motion vector prediction.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_parse.h+1−1
@@ -33,7 +33,7 @@ typedef struct H264PredWeightTable { · 32 unmodified lines
3333 int chroma_log2_weight_denom;
3434 int luma_weight_flag[2]; ///< 7.4.3.2 luma_weight_lX_flag
3535 int chroma_weight_flag[2]; ///< 7.4.3.2 chroma_weight_lX_flag
36− // The following 2 can be changed to int8_t but that causes 10cpu cycles speedloss
36+ // The following 2 can be changed to int8_t but that causes a 10 CPU cycles speed loss
3737 int luma_weight[48][2][2];
3838 int chroma_weight[48][2][2][2];
3939 int implicit_weight[48][48][2];
libavcodec/h264_parser.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 parser.
24+ * H.264 / AVC / MPEG-4 part10 parser.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_picture.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 codec.
24+ * H.264 / AVC / MPEG-4 part10 codec.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_ps.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 parameter set decoding.
24+ * H.264 / AVC / MPEG-4 part10 parameter set decoding.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_refs.c+2−2
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 reference picture handling.
24+ * H.264 / AVC / MPEG-4 part10 reference picture handling.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -610,7 +610,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count) · 582 unmodified lines
610610 av_log(h->avctx, AV_LOG_DEBUG, "mmco: unref long failure\n");
611611 break;
612612 case MMCO_LONG:
613− // Comment below left from previous code as it is an interresting note.
613+ // Comment below left from previous code as it is an interesting note.
614614 /* First field in pair is in short term list or
615615 * at a different long term index.
616616 * This is not allowed; see 7.4.3.3, notes 2 and 3.
libavcodec/h264_sei.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H.26L/H.264/AVC/JVT/14496-10/... sei decoding
2+ * H.26L/H.264/AVC/JVT/14496-10/... SEI decoding
33 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
44 *
55 * This file is part of Libav.
@@ -21,7 +21,7 @@ · 15 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 sei decoding.
24+ * H.264 / AVC / MPEG-4 part10 SEI decoding.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264_slice.c+3−3
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 codec.
24+ * H.264 / AVC / MPEG-4 part10 codec.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -128,7 +128,7 @@ static int alloc_scratch_buffers(H264SliceContext *sl, int linesize) · 100 unmodified lines
128128
129129 av_fast_malloc(&sl->bipred_scratchpad, &sl->bipred_scratchpad_allocated, 16 * 6 * alloc_size);
130130 // edge emu needs blocksize + filter length - 1
131− // (= 21x21 for h264)
131+ // (= 21x21 for H.264)
132132 av_fast_malloc(&sl->edge_emu_buffer, &sl->edge_emu_buffer_allocated, alloc_size * 2 * 21);
133133
134134 av_fast_malloc(&sl->top_borders[0], &sl->top_borders_allocated[0],
@@ -903,7 +903,7 @@ static int h264_slice_header_init(H264Context *h) · 768 unmodified lines
903903
904904 /**
905905 * Decode a slice header.
906− * This will (re)intialize the decoder and call h264_frame_start() as needed.
906+ * This will (re)initialize the decoder and call h264_frame_start() as needed.
907907 *
908908 * @param h h264context
909909 *
libavcodec/h264addpx_template.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 DSP functions.
24+ * H.264 / AVC / MPEG-4 part10 DSP functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264data.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * H26L/H264/AVC/JVT/14496-10/... encoder/decoder
2+ * H.26L/H.264/AVC/JVT/14496-10/... encoder/decoder
33 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
44 *
55 * This file is part of Libav.
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222 /**
2323 * @file
2424 * @brief
25− * H264 / AVC / MPEG4 part10 codec data table
25+ * H.264 / AVC / MPEG-4 part10 codec data table
2626 * @author Michael Niedermayer <michaelni@gmx.at>
2727 */
2828
libavcodec/h264dsp.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 DSP functions.
24+ * H.264 / AVC / MPEG-4 part10 DSP functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264dsp.h+1−1
@@ -70,7 +70,7 @@ typedef struct H264DSPContext { · 69 unmodified lines
7070 int stride, int alpha, int beta);
7171 void (*h264_h_loop_filter_chroma_mbaff_intra)(uint8_t *pix /*align 8*/,
7272 int stride, int alpha, int beta);
73− // h264_loop_filter_strength: simd only. the C version is inlined in h264.c
73+ // h264_loop_filter_strength: simd only. the C version is inlined in h264_loopfilter.c
7474 void (*h264_loop_filter_strength)(int16_t bS[2][4][4], uint8_t nnz[40],
7575 int8_t ref[2][40], int16_t mv[2][40][2],
7676 int bidir, int edges, int step,
libavcodec/h264dsp_template.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 DSP functions.
24+ * H.264 / AVC / MPEG-4 part10 DSP functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/h264pred.c+2−2
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 prediction functions.
24+ * H.264 / AVC / MPEG-4 part10 prediction functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -547,7 +547,7 @@ av_cold void ff_h264_pred_init(H264PredContext *h, int codec_id, · 519 unmodified lines
547547 h->pred16x16[TOP_DC_PRED8x8 ]= FUNCC(pred16x16_top_dc , depth);\
548548 h->pred16x16[DC_128_PRED8x8 ]= FUNCC(pred16x16_128_dc , depth);\
549549 \
550− /* special lossless h/v prediction for h264 */ \
550+ /* special lossless h/v prediction for H.264 */ \
551551 h->pred4x4_add [VERT_PRED ]= FUNCC(pred4x4_vertical_add , depth);\
552552 h->pred4x4_add [ HOR_PRED ]= FUNCC(pred4x4_horizontal_add , depth);\
553553 h->pred8x8l_add [VERT_PRED ]= FUNCC(pred8x8l_vertical_add , depth);\
libavcodec/h264pred.h+2−2
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 prediction functions.
24+ * H.264 / AVC / MPEG-4 prediction functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
@@ -75,7 +75,7 @@ · 47 unmodified lines
7575 #define TOP_DC_PRED8x8 5
7676 #define DC_128_PRED8x8 6
7777
78−// H264/SVQ3 (8x8) specific
78+// H.264/SVQ3 (8x8) specific
7979 #define ALZHEIMER_DC_L0T_PRED8x8 7
8080 #define ALZHEIMER_DC_0LT_PRED8x8 8
8181 #define ALZHEIMER_DC_L00_PRED8x8 9
libavcodec/h264pred_template.c+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 prediction functions.
24+ * H.264 / AVC / MPEG-4 part10 prediction functions.
2525 * @author Michael Niedermayer <michaelni@gmx.at>
2626 */
2727
libavcodec/hevc_mvs.c+1−1
@@ -109,7 +109,7 @@ static int check_prediction_block_available(HEVCContext *s, int log2_cb_size, · 108 unmodified lines
109109 return z_scan_block_avail(s, x0, y0, xA1, yA1);
110110 }
111111
112−//check if the two luma locations belong to the same mostion estimation region
112+//check if the two luma locations belong to the same motion estimation region
113113 static int isDiffMER(HEVCContext *s, int xN, int yN, int xP, int yP)
114114 {
115115 uint8_t plevel = s->ps.pps->log2_parallel_merge_level;
libavcodec/hevc_sei.c+1−1
@@ -95,7 +95,7 @@ static int decode_nal_sei_frame_packing_arrangement(HEVCContext *s) · 94 unmodified lines
9595 if (!s->quincunx_subsampling && s->frame_packing_arrangement_type != 5)
9696 skip_bits(gb, 16); // frame[01]_grid_position_[xy]
9797 skip_bits(gb, 8); // frame_packing_arrangement_reserved_byte
98− skip_bits1(gb); // frame_packing_arrangement_persistance_flag
98+ skip_bits1(gb); // frame_packing_arrangement_persistence_flag
9999 }
100100 skip_bits1(gb); // upsampled_aspect_ratio_flag
101101 return 0;
libavcodec/idcinvideo.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * id Quake II CIN Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/imc.c+1−1
@@ -69,7 +69,7 @@ typedef struct IMCChannel { · 68 unmodified lines
6969 int sumLenArr[BANDS]; ///< bits for all coeffs in band
7070 int skipFlagRaw[BANDS]; ///< skip flags are stored in raw form or not
7171 int skipFlagBits[BANDS]; ///< bits used to code skip flags
72− int skipFlagCount[BANDS]; ///< skipped coeffients per band
72+ int skipFlagCount[BANDS]; ///< skipped coefficients per band
7373 int skipFlags[COEFFS]; ///< skip coefficient decoding or not
7474 int codewords[COEFFS]; ///< raw codewords read from bitstream
7575
libavcodec/indeo3.c+2−2
@@ -52,7 +52,7 @@ enum { · 51 unmodified lines
5252
5353
5454 /* Some constants for parsing frame bitstream flags. */
55−#define BS_8BIT_PEL (1 << 1) ///< 8bit pixel bitdepth indicator
55+#define BS_8BIT_PEL (1 << 1) ///< 8-bit pixel bitdepth indicator
5656 #define BS_KEYFRAME (1 << 2) ///< intra frame indicator
5757 #define BS_MV_Y_HALF (1 << 4) ///< vertical mv halfpel resolution indicator
5858 #define BS_MV_X_HALF (1 << 5) ///< horizontal mv halfpel resolution indicator
@@ -307,7 +307,7 @@ static inline uint32_t replicate32(uint32_t a) { · 248 unmodified lines
307307 }
308308
309309
310−/* Fill n lines with 64bit pixel value pix */
310+/* Fill n lines with 64-bit pixel value pix */
311311 static inline void fill_64(uint8_t *dst, const uint64_t pix, int32_t n,
312312 int32_t row_offset)
313313 {
libavcodec/indeo3data.h+2−2
@@ -234,7 +234,7 @@ · 233 unmodified lines
234234
235235
236236 /**
237− * Pack two delta values (a,b) into one 16bit word
237+ * Pack two delta values (a,b) into one 16-bit word
238238 * according with endianness of the host machine.
239239 */
240240 #if HAVE_BIGENDIAN
@@ -281,7 +281,7 @@ static const int16_t delta_tab_3_5[79] = { TAB_3_5 }; · 40 unmodified lines
281281 #undef PD
282282
283283 /**
284− * Pack four delta values (a,a,b,b) into one 32bit word
284+ * Pack four delta values (a,a,b,b) into one 32-bit word
285285 * according with endianness of the host machine.
286286 */
287287 #if HAVE_BIGENDIAN
libavcodec/intelh263dec.c+4−4
@@ -44,8 +44,8 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) · 43 unmodified lines
4444 return -1; /* marker */
4545 }
4646 if (get_bits1(&s->gb) != 0) {
47− av_log(s->avctx, AV_LOG_ERROR, "Bad H263 id\n");
48− return -1; /* h263 id */
47+ av_log(s->avctx, AV_LOG_ERROR, "Bad H.263 id\n");
48+ return -1; /* H.263 id */
4949 }
5050 skip_bits1(&s->gb); /* split screen off */
5151 skip_bits1(&s->gb); /* camera off */
@@ -53,7 +53,7 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) · 1 unmodified line
5353
5454 format = get_bits(&s->gb, 3);
5555 if (format == 0 || format == 6) {
56− av_log(s->avctx, AV_LOG_ERROR, "Intel H263 free format not supported\n");
56+ av_log(s->avctx, AV_LOG_ERROR, "Intel H.263 free format not supported\n");
5757 return -1;
5858 }
5959 s->h263_plus = 0;
@@ -78,7 +78,7 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s) · 18 unmodified lines
7878 } else {
7979 format = get_bits(&s->gb, 3);
8080 if(format == 0 || format == 7){
81− av_log(s->avctx, AV_LOG_ERROR, "Wrong Intel H263 format\n");
81+ av_log(s->avctx, AV_LOG_ERROR, "Wrong Intel H.263 format\n");
8282 return -1;
8383 }
8484 if(get_bits(&s->gb, 2))
libavcodec/interplayvideo.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Interplay MVE Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/intrax8.c+5−5
@@ -217,7 +217,7 @@ static void x8_get_ac_rlf(IntraX8Context *const w, const int mode, · 216 unmodified lines
217217 int t, l;
218218 if (i < 0) {
219219 *level =
220− *final = // prevent 'may be used unilitialized'
220+ *final = // prevent 'may be used uninitialized'
221221 *run = 64; // this would cause error exit in the ac loop
222222 return;
223223 }
@@ -251,12 +251,12 @@ static void x8_get_ac_rlf(IntraX8Context *const w, const int mode, · 27 unmodified lines
251251 sm = ac_decode_table[i];
252252
253253 e = get_bits(w->gb, sm & 0xF);
254− sm >>= 8; // 3bits
254+ sm >>= 8; // 3 bits
255255 mask = sm & 0xff;
256− sm >>= 8; // 1bit
256+ sm >>= 8; // 1 bit
257257
258− *run = (sm & 0xff) + (e & mask); // 6bits
259− *level = (sm >> 8) + (e & ~mask); // 5bits
258+ *run = (sm & 0xff) + (e & mask); // 6 bits
259+ *level = (sm >> 8) + (e & ~mask); // 5 bits
260260 *final = i > (58 - 46);
261261 } else if (i < 75) { // [73-74]
262262 static const uint8_t crazy_mix_runlevel[32] = {
libavcodec/ituh263dec.c+9−9
@@ -1,7 +1,7 @@
11 /*
2− * ITU H263 bitstream decoder
2+ * ITU H.263 bitstream decoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
4− * H263+ support.
4+ * H.263+ support.
55 * Copyright (c) 2001 Juan J. Sierralta P
66 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
77 *
@@ -24,7 +24,7 @@ · 16 unmodified lines
2424
2525 /**
2626 * @file
27− * h263 decoder.
27+ * H.263 decoder.
2828 */
2929
3030 #include <limits.h>
@@ -298,7 +298,7 @@ int ff_h263_decode_motion(MpegEncContext * s, int pred, int f_code) · 267 unmodified lines
298298 if (!s->h263_long_vectors) {
299299 val = sign_extend(val, 5 + f_code);
300300 } else {
301− /* horrible h263 long vector mode */
301+ /* horrible H.263 long vector mode */
302302 if (pred < -31 && val < -63)
303303 val += 64;
304304 if (pred > 32 && val > 63)
@@ -866,7 +866,7 @@ end: · 561 unmodified lines
866866 return SLICE_OK;
867867 }
868868
869−/* most is hardcoded. should extend to handle all h263 streams */
869+/* Most is hardcoded; should extend to handle all H.263 streams. */
870870 int ff_h263_decode_picture_header(MpegEncContext *s)
871871 {
872872 int format, width, height, i, ret;
@@ -900,8 +900,8 @@ int ff_h263_decode_picture_header(MpegEncContext *s) · 27 unmodified lines
900900 return -1;
901901 }
902902 if (get_bits1(&s->gb) != 0) {
903− av_log(s->avctx, AV_LOG_ERROR, "Bad H263 id\n");
904− return -1; /* h263 id */
903+ av_log(s->avctx, AV_LOG_ERROR, "Bad H.263 id\n");
904+ return -1; /* H.263 id */
905905 }
906906 skip_bits1(&s->gb); /* split screen off */
907907 skip_bits1(&s->gb); /* camera off */
@@ -926,7 +926,7 @@ int ff_h263_decode_picture_header(MpegEncContext *s) · 18 unmodified lines
926926 s->h263_long_vectors = get_bits1(&s->gb);
927927
928928 if (get_bits1(&s->gb) != 0) {
929− av_log(s->avctx, AV_LOG_ERROR, "H263 SAC not supported\n");
929+ av_log(s->avctx, AV_LOG_ERROR, "H.263 SAC not supported\n");
930930 return -1; /* SAC: off */
931931 }
932932 s->obmc= get_bits1(&s->gb); /* Advanced prediction mode */
@@ -1017,7 +1017,7 @@ int ff_h263_decode_picture_header(MpegEncContext *s) · 84 unmodified lines
10171017 height = get_bits(&s->gb, 9) * 4;
10181018 ff_dlog(s->avctx, "\nH.263+ Custom picture: %dx%d\n",width,height);
10191019 if (s->aspect_ratio_info == FF_ASPECT_EXTENDED) {
1020− /* aspected dimensions */
1020+ /* expected dimensions */
10211021 s->avctx->sample_aspect_ratio.num= get_bits(&s->gb, 8);
10221022 s->avctx->sample_aspect_ratio.den= get_bits(&s->gb, 8);
10231023 }else{
libavcodec/ituh263enc.c+9−9
@@ -1,7 +1,7 @@
11 /*
2− * ITU H263 bitstream encoder
2+ * ITU H.263 bitstream encoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
4− * H263+ support.
4+ * H.263+ support.
55 * Copyright (c) 2001 Juan J. Sierralta P
66 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
77 *
@@ -24,7 +24,7 @@ · 16 unmodified lines
2424
2525 /**
2626 * @file
27− * h263 bitstream encoder.
27+ * H.263 bitstream encoder.
2828 */
2929
3030 #include <limits.h>
@@ -135,7 +135,7 @@ void ff_h263_encode_picture_header(MpegEncContext * s, int picture_number) · 104 unmodified lines
135135 put_sbits(&s->pb, 8, temp_ref); /* TemporalReference */
136136
137137 put_bits(&s->pb, 1, 1); /* marker */
138− put_bits(&s->pb, 1, 0); /* h263 id */
138+ put_bits(&s->pb, 1, 0); /* H.263 id */
139139 put_bits(&s->pb, 1, 0); /* split screen off */
140140 put_bits(&s->pb, 1, 0); /* camera off */
141141 put_bits(&s->pb, 1, 0); /* freeze picture release off */
@@ -151,7 +151,7 @@ void ff_h263_encode_picture_header(MpegEncContext * s, int picture_number) · 9 unmodified lines
151151 put_bits(&s->pb, 1, 0); /* Unrestricted Motion Vector: off */
152152 put_bits(&s->pb, 1, 0); /* SAC: off */
153153 put_bits(&s->pb, 1, s->obmc); /* Advanced Prediction */
154− put_bits(&s->pb, 1, 0); /* only I/P frames, no PB frame */
154+ put_bits(&s->pb, 1, 0); /* only I/P-frames, no PB-frame */
155155 put_bits(&s->pb, 5, s->qscale);
156156 put_bits(&s->pb, 1, 0); /* Continuous Presence Multipoint mode: off */
157157 } else {
@@ -270,7 +270,7 @@ void ff_h263_encode_gob_header(MpegEncContext * s, int mb_line) · 112 unmodified lines
270270 }
271271
272272 /**
273− * modify qscale so that encoding is acually possible in h263 (limit difference to -2..2)
273+ * modify qscale so that encoding is actually possible in H.263 (limit difference to -2..2)
274274 */
275275 void ff_clean_h263_qscales(MpegEncContext *s){
276276 int i;
@@ -782,7 +782,7 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) · 505 unmodified lines
782782
783783 init_mv_penalty_and_fcode(s);
784784 }
785− s->me.mv_penalty= mv_penalty; //FIXME exact table for msmpeg4 & h263p
785+ s->me.mv_penalty= mv_penalty; // FIXME exact table for MSMPEG4 & H.263+
786786
787787 s->intra_ac_vlc_length =s->inter_ac_vlc_length = uni_h263_inter_rl_len;
788788 s->intra_ac_vlc_last_length=s->inter_ac_vlc_last_length= uni_h263_inter_rl_len + 128*64;
@@ -792,7 +792,7 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) · 3 unmodified lines
792792 }
793793 s->ac_esc_length= 7+1+6+8;
794794
795− // use fcodes >1 only for mpeg4 & h263 & h263p FIXME
795+ // use fcodes >1 only for MPEG-4 & H.263 & H.263+ FIXME
796796 switch(s->codec_id){
797797 case AV_CODEC_ID_MPEG4:
798798 s->fcode_tab= fcode_tab;
@@ -808,7 +808,7 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) · 9 unmodified lines
808808 s->max_qcoeff= 127;
809809 }
810810 break;
811− //Note for mpeg4 & h263 the dc-scale table will be set per frame as needed later
811+ // Note for MPEG-4 & H.263 the dc-scale table will be set per frame as needed later
812812 case AV_CODEC_ID_FLV1:
813813 if (s->h263_flv > 1) {
814814 s->min_qcoeff= -1023;
libavcodec/ivi_dsp.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323 /**
2424 * @file
25− * DSP functions (inverse transforms, motion compensation, wavelet recompostions)
25+ * DSP functions (inverse transforms, motion compensation, wavelet recompositions)
2626 * for Indeo Video Interactive codecs.
2727 */
2828
libavcodec/ivi_dsp.h+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323 /**
2424 * @file
25− * DSP functions (inverse transforms, motion compensations, wavelet recompostion)
25+ * DSP functions (inverse transforms, motion compensations, wavelet recomposition)
2626 * for Indeo Video Interactive codecs.
2727 */
2828
libavcodec/jpeg2000.c+2−2
@@ -236,7 +236,7 @@ static void init_band_stepsize(AVCodecContext *avctx, · 235 unmodified lines
236236 av_log(avctx, AV_LOG_ERROR, "Unknown quantization format\n");
237237 break;
238238 }
239− /* FIXME: In openjepg code stespize = stepsize * 0.5. Why?
239+ /* FIXME: In OpenJPEG code stespize = stepsize * 0.5. Why?
240240 * If not set output of entropic decoder is not correct. */
241241 if (!av_codec_is_encoder(avctx->codec))
242242 band->f_stepsize *= 0.5;
@@ -487,7 +487,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, · 244 unmodified lines
487487 else
488488 reslevel->nbands = 3;
489489
490− /* Number of precincts wich span the tile for resolution level reslevelno
490+ /* Number of precincts which span the tile for resolution level reslevelno
491491 * see B.6 in ISO/IEC 15444-1:2002 eq. B-16
492492 * num_precincts_x = |- trx_1 / 2 ^ log2_prec_width) -| - (trx_0 / 2 ^ log2_prec_width)
493493 * num_precincts_y = |- try_1 / 2 ^ log2_prec_width) -| - (try_0 / 2 ^ log2_prec_width)
libavcodec/jpeglsenc.c+1−1
@@ -387,7 +387,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 386 unmodified lines
387387 av_freep(&state);
388388
389389 /* the specification says that after doing 0xff escaping unused bits in
390− * the last byte must be set to 0, so just append 7 "optional" zero-bits
390+ * the last byte must be set to 0, so just append 7 "optional" zero bits
391391 * to avoid special-casing. */
392392 put_bits(&pb2, 7, 0);
393393 size = put_bits_count(&pb2);
libavcodec/lagarith.c+5−5
@@ -59,11 +59,11 @@ typedef struct LagarithContext { · 58 unmodified lines
5959 } LagarithContext;
6060
6161 /**
62− * Compute the 52bit mantissa of 1/(double)denom.
62+ * Compute the 52-bit mantissa of 1/(double)denom.
6363 * This crazy format uses floats in an entropy coder and we have to match x86
6464 * rounding exactly, thus ordinary floats aren't portable enough.
6565 * @param denom denominator
66− * @return 52bit mantissa
66+ * @return 52-bit mantissa
6767 * @see softfloat_mul
6868 */
6969 static uint64_t softfloat_reciprocal(uint32_t denom)
@@ -80,9 +80,9 @@ static uint64_t softfloat_reciprocal(uint32_t denom) · 10 unmodified lines
8080 /**
8181 * (uint32_t)(x*f), where f has the given mantissa, and exponent 0
8282 * Used in combination with softfloat_reciprocal computes x/(double)denom.
83− * @param x 32bit integer factor
83+ * @param x 32-bit integer factor
8484 * @param mantissa mantissa of f with exponent 0
85− * @return 32bit integer value (x*f)
85+ * @return 32-bit integer value (x*f)
8686 * @see softfloat_reciprocal
8787 */
8888 static uint32_t softfloat_mul(uint32_t x, uint64_t mantissa)
@@ -226,7 +226,7 @@ static void add_lag_median_prediction(uint8_t *dst, uint8_t *src1, · 137 unmodified lines
226226 int *left_top)
227227 {
228228 /* This is almost identical to add_hfyu_median_pred in huffyuvdsp.h.
229− * However the &0xFF on the gradient predictor yealds incorrect output
229+ * However the &0xFF on the gradient predictor yields incorrect output
230230 * for lagarith.
231231 */
232232 int i;
libavcodec/libopencore-amr.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * AMR Audio decoder stub
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -152,7 +152,7 @@ typedef struct AMR_bitrates { · 145 unmodified lines
152152 /* Match desired bitrate */
153153 static int get_bitrate_mode(int bitrate, void *log_ctx)
154154 {
155− /* make the correspondance between bitrate and mode */
155+ /* make the correspondence between bitrate and mode */
156156 static const AMR_bitrates rates[] = {
157157 { 4750, MR475 }, { 5150, MR515 }, { 5900, MR59 }, { 6700, MR67 },
158158 { 7400, MR74 }, { 7950, MR795 }, { 10200, MR102 }, { 12200, MR122 }
libavcodec/libopus.c+4−4
@@ -2,20 +2,20 @@ · 1 unmodified line
22 * libopus encoder/decoder common code
33 * Copyright (c) 2012 Nicolas George
44 *
5− * This file is part of libav.
5+ * This file is part of Libav.
66 *
7− * libav is free software; you can redistribute it and/or
7+ * Libav is free software; you can redistribute it and/or
88 * modify it under the terms of the GNU Lesser General Public
99 * License as published by the Free Software Foundation; either
1010 * version 2.1 of the License, or (at your option) any later version.
1111 *
12− * libav is distributed in the hope that it will be useful,
12+ * Libav is distributed in the hope that it will be useful,
1313 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1414 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515 * Lesser General Public License for more details.
1616 *
1717 * You should have received a copy of the GNU Lesser General Public
18− * License along with libav; if not, write to the Free Software
18+ * License along with Libav; if not, write to the Free Software
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
libavcodec/libopus.h+4−4
@@ -2,20 +2,20 @@ · 1 unmodified line
22 * libopus encoder/decoder common code
33 * Copyright (c) 2012 Nicolas George
44 *
5− * This file is part of libav.
5+ * This file is part of Libav.
66 *
7− * libav is free software; you can redistribute it and/or
7+ * Libav is free software; you can redistribute it and/or
88 * modify it under the terms of the GNU Lesser General Public
99 * License as published by the Free Software Foundation; either
1010 * version 2.1 of the License, or (at your option) any later version.
1111 *
12− * libav is distributed in the hope that it will be useful,
12+ * Libav is distributed in the hope that it will be useful,
1313 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1414 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515 * Lesser General Public License for more details.
1616 *
1717 * You should have received a copy of the GNU Lesser General Public
18− * License along with libav; if not, write to the Free Software
18+ * License along with Libav; if not, write to the Free Software
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
libavcodec/libopusdec.c+1−1
@@ -73,7 +73,7 @@ static av_cold int libopus_decode_init(AVCodecContext *avc) · 72 unmodified lines
7373 const uint8_t *vorbis_offset = ff_vorbis_channel_layout_offsets[avc->channels - 1];
7474 int ch;
7575
76− /* Remap channels from vorbis order to libav order */
76+ /* Remap channels from Vorbis order to libav order */
7777 for (ch = 0; ch < avc->channels; ch++)
7878 mapping_arr[ch] = mapping[vorbis_offset[ch]];
7979 mapping = mapping_arr;
libavcodec/libopusenc.c+4−4
@@ -2,20 +2,20 @@ · 1 unmodified line
22 * Opus encoder using libopus
33 * Copyright (c) 2012 Nathan Caldwell
44 *
5− * This file is part of libav.
5+ * This file is part of Libav.
66 *
7− * libav is free software; you can redistribute it and/or
7+ * Libav is free software; you can redistribute it and/or
88 * modify it under the terms of the GNU Lesser General Public
99 * License as published by the Free Software Foundation; either
1010 * version 2.1 of the License, or (at your option) any later version.
1111 *
12− * libav is distributed in the hope that it will be useful,
12+ * Libav is distributed in the hope that it will be useful,
1313 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1414 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1515 * Lesser General Public License for more details.
1616 *
1717 * You should have received a copy of the GNU Lesser General Public
18− * License along with libav; if not, write to the Free Software
18+ * License along with Libav; if not, write to the Free Software
1919 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2020 */
2121
libavcodec/libschroedingerenc.c+1−1
@@ -351,7 +351,7 @@ static int libschroedinger_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 350 unmodified lines
351351 p_frame_output->key_frame = 1;
352352
353353 /* Parse the coded frame number from the bitstream. Bytes 14
354− * through 17 represesent the frame number. */
354+ * through 17 represent the frame number. */
355355 p_frame_output->frame_num = AV_RB32(enc_buf->data + 13);
356356
357357 ff_schro_queue_push_back(&p_schro_params->enc_frame_queue,
libavcodec/libspeexenc.c+1−1
@@ -215,7 +215,7 @@ static av_cold int encode_init(AVCodecContext *avctx) · 214 unmodified lines
215215 if (s->vad)
216216 speex_encoder_ctl(s->enc_state, SPEEX_SET_VAD, &s->vad);
217217
218− /* Activiting Discontinuous Transmission */
218+ /* Activating Discontinuous Transmission */
219219 if (s->dtx) {
220220 speex_encoder_ctl(s->enc_state, SPEEX_SET_DTX, &s->dtx);
221221 if (!(s->abr || s->vad || s->header.vbr))
libavcodec/libtheoraenc.c+1−1
@@ -250,7 +250,7 @@ static av_cold int encode_init(AVCodecContext* avc_context) · 249 unmodified lines
250250 Output first header packet consisting of theora
251251 header, comment, and tables.
252252
253− Each one is prefixed with a 16bit size, then they
253+ Each one is prefixed with a 16-bit size, then they
254254 are concatenated together into libavcodec's extradata.
255255 */
256256 offset = 0;
libavcodec/libvo-amrwbenc.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * AMR Audio encoder stub
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -51,7 +51,7 @@ static const AVClass class = { · 44 unmodified lines
5151
5252 static int get_wb_bitrate_mode(int bitrate, void *log_ctx)
5353 {
54− /* make the correspondance between bitrate and mode */
54+ /* make the correspondence between bitrate and mode */
5555 static const int rates[] = { 6600, 8850, 12650, 14250, 15850, 18250,
5656 19850, 23050, 23850 };
5757 int i, best = -1, min_diff = 0;
libavcodec/libxvid.c+4−4
@@ -1,5 +1,5 @@
11 /*
2− * Interface to xvidcore for mpeg4 encoding
2+ * Interface to xvidcore for MPEG-4 encoding
33 * Copyright (c) 2004 Adam Thayer <krevnik@comcast.net>
44 *
55 * This file is part of Libav.
@@ -74,7 +74,7 @@ struct xvid_context { · 68 unmodified lines
7474 int ssim_acc; /**< SSIM accuracy. 0: accurate. 4: fast. */
7575 int gmc;
7676 int me_quality; /**< Motion estimation quality. 0: fast 6: best. */
77− int mpeg_quant; /**< Quantization type. 0: H263, 1: MPEG */
77+ int mpeg_quant; /**< Quantization type. 0: H.263, 1: MPEG */
7878 };
7979
8080 /**
@@ -134,7 +134,7 @@ static int xvid_ff_2pass_create(xvid_plg_create_t *param, void **handle) · 53 unmodified lines
134134 * Destroy the two-pass plugin context.
135135 *
136136 * @param ref Context pointer for the plugin
137− * @param param Destrooy context
137+ * @param param Destroy context
138138 * @return Returns 0, success guaranteed
139139 */
140140 static int xvid_ff_2pass_destroy(struct xvid_context *ref,
@@ -664,7 +664,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 523 unmodified lines
664664 avctx->extradata = NULL;
665665 avctx->extradata_size = 0;
666666 if (xvid_flags & AV_CODEC_FLAG_GLOBAL_HEADER) {
667− /* In this case, we are claiming to be MPEG4 */
667+ /* In this case, we are claiming to be MPEG-4 */
668668 x->quicktime_format = 1;
669669 avctx->codec_id = AV_CODEC_ID_MPEG4;
670670 } else {
libavcodec/lsp.c+1−1
@@ -32,7 +32,7 @@ void ff_acelp_reorder_lsf(int16_t* lsfq, int lsfq_min_distance, int lsfq_min, in · 31 unmodified lines
3232 {
3333 int i, j;
3434
35− /* sort lsfq in ascending order. float bubble agorithm,
35+ /* sort lsfq in ascending order. float bubble algorithm,
3636 O(n) if data already sorted, O(n^2) - otherwise */
3737 for(i=0; i<lp_order-1; i++)
3838 for(j=i; j>=0 && lsfq[j] > lsfq[j+1]; j--)
libavcodec/lsp.h+1−1
@@ -102,7 +102,7 @@ void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd · 101 unmodified lines
102102 * @param lp_half_order half the number of the amount of LPCs to be
103103 * reconstructed, need to be smaller or equal to MAX_LP_HALF_ORDER
104104 *
105− * @note buffers should have a minimux size of 2*lp_half_order elements.
105+ * @note buffers should have a minimum size of 2*lp_half_order elements.
106106 *
107107 * TIA/EIA/IS-733 2.4.3.3.5
108108 */
libavcodec/mjpegdec.c+6−6
@@ -140,9 +140,9 @@ int ff_mjpeg_decode_dqt(MJpegDecodeContext *s) · 139 unmodified lines
140140 len = get_bits(&s->gb, 16) - 2;
141141
142142 while (len >= 65) {
143− /* only 8 bit precision handled */
143+ /* only 8-bit precision handled */
144144 if (get_bits(&s->gb, 4) != 0) {
145− av_log(s->avctx, AV_LOG_ERROR, "dqt: 16bit precision\n");
145+ av_log(s->avctx, AV_LOG_ERROR, "dqt: 16-bit precision\n");
146146 return -1;
147147 }
148148 index = get_bits(&s->gb, 4);
@@ -155,7 +155,7 @@ int ff_mjpeg_decode_dqt(MJpegDecodeContext *s) · 6 unmodified lines
155155 s->quant_matrixes[index][j] = get_bits(&s->gb, 8);
156156 }
157157
158− // XXX FIXME finetune, and perhaps add dc too
158+ // XXX FIXME fine-tune, and perhaps add dc too
159159 s->qscale[index] = FFMAX(s->quant_matrixes[index][s->scantable.permutated[1]],
160160 s->quant_matrixes[index][s->scantable.permutated[8]]) >> 1;
161161 av_log(s->avctx, AV_LOG_DEBUG, "qscale[%d]: %d\n",
@@ -1271,9 +1271,9 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) · 1109 unmodified lines
12711271 av_log(s->avctx, AV_LOG_INFO,
12721272 "Pegasus lossless jpeg header found\n");
12731273 skip_bits(&s->gb, 16); /* version ? */
1274− skip_bits(&s->gb, 16); /* unknwon always 0? */
1275− skip_bits(&s->gb, 16); /* unknwon always 0? */
1276− skip_bits(&s->gb, 16); /* unknwon always 0? */
1274+ skip_bits(&s->gb, 16); /* unknown always 0? */
1275+ skip_bits(&s->gb, 16); /* unknown always 0? */
1276+ skip_bits(&s->gb, 16); /* unknown always 0? */
12771277 switch (get_bits(&s->gb, 8)) {
12781278 case 1:
12791279 s->rgb = 1;
libavcodec/mjpegdec.h+1−1
@@ -68,7 +68,7 @@ typedef struct MJpegDecodeContext { · 67 unmodified lines
6868 int maxval;
6969 int near; ///< near lossless bound (si 0 for lossless)
7070 int t1,t2,t3;
71− int reset; ///< context halfing intervall ?rename
71+ int reset; ///< context halfing interval ?rename
7272
7373 int width, height;
7474 int mb_width, mb_height;
libavcodec/mjpegenc.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #include "put_bits.h"
4141
4242 typedef struct MJpegContext {
43− uint8_t huff_size_dc_luminance[12]; //FIXME use array [3] instead of lumi / chrom, for easier addressing
43+ uint8_t huff_size_dc_luminance[12]; //FIXME use array [3] instead of lumi / chroma, for easier addressing
4444 uint16_t huff_code_dc_luminance[12];
4545 uint8_t huff_size_dc_chrominance[12];
4646 uint16_t huff_code_dc_chrominance[12];
libavcodec/mlp_parser.h+3−3
@@ -40,9 +40,9 @@ typedef struct MLPHeaderInfo · 39 unmodified lines
4040 int group1_samplerate; ///< Sample rate of first substream
4141 int group2_samplerate; ///< Sample rate of second substream (MLP only)
4242
43− int channel_modifier_thd_stream0; ///< Channel modifier for substream 0 of TrueHD sreams ("2-channel presentation")
44− int channel_modifier_thd_stream1; ///< Channel modifier for substream 1 of TrueHD sreams ("6-channel presentation")
45− int channel_modifier_thd_stream2; ///< Channel modifier for substream 2 of TrueHD sreams ("8-channel presentation")
43+ int channel_modifier_thd_stream0; ///< Channel modifier for substream 0 of TrueHD streams ("2-channel presentation")
44+ int channel_modifier_thd_stream1; ///< Channel modifier for substream 1 of TrueHD streams ("6-channel presentation")
45+ int channel_modifier_thd_stream2; ///< Channel modifier for substream 2 of TrueHD streams ("8-channel presentation")
4646
4747 int channels_mlp; ///< Channel count for MLP streams
4848 int channels_thd_stream1; ///< Channel count for substream 1 of TrueHD streams ("6-channel presentation")
libavcodec/mmaldec.c+1−1
@@ -657,7 +657,7 @@ static int ffmmal_read_frame(AVCodecContext *avctx, AVFrame *frame, int *got_fra · 656 unmodified lines
657657 // being busy from decoder waiting for input. So just poll at the start and
658658 // keep feeding new data to the buffer.
659659 // We are pretty sure the decoder will produce output if we sent more input
660− // frames than what a h264 decoder could logically delay. This avoids too
660+ // frames than what a H.264 decoder could logically delay. This avoids too
661661 // excessive buffering.
662662 // We also wait if we sent eos, but didn't receive it yet (think of decoding
663663 // stream with a very low number of frames).
libavcodec/motion_est.c+4−4
@@ -202,7 +202,7 @@ static av_always_inline int cmp_inline(MpegEncContext *s, const int x, const int · 201 unmodified lines
202202 cx= (cx>>1)|(cx&1);
203203 cy= (cy>>1)|(cy&1);
204204 uvdxy= (cx&1) + 2*(cy&1);
205− //FIXME x/y wrong, but mpeg4 qpel is sick anyway, we should drop as much of it as possible in favor for h264
205+ // FIXME x/y wrong, but MPEG-4 qpel is sick anyway, we should drop as much of it as possible in favor for H.264
206206 }
207207 }else{
208208 c->hpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride, h);
@@ -547,7 +547,7 @@ static inline void get_limits(MpegEncContext *s, int x, int y) · 338 unmodified lines
547547 c->xmax = - x + s->mb_width *16;
548548 c->ymax = - y + s->mb_height*16;
549549 } else if (s->out_format == FMT_H261){
550− // Search range of H261 is different from other codec standards
550+ // Search range of H.261 is different from other codec standards
551551 c->xmin = (x > 15) ? - 15 : 0;
552552 c->ymin = (y > 15) ? - 15 : 0;
553553 c->xmax = (x < s->mb_width * 16 - 16) ? 15 : 0;
@@ -936,7 +936,7 @@ void ff_estimate_p_frame_motion(MpegEncContext * s, · 382 unmodified lines
936936 if (s->out_format == FMT_H263) {
937937 c->pred_x = P_MEDIAN[0];
938938 c->pred_y = P_MEDIAN[1];
939− } else { /* mpeg1 at least */
939+ } else { /* MPEG-1 at least */
940940 c->pred_x = P_LEFT[0];
941941 c->pred_y = P_LEFT[1];
942942 }
@@ -1506,7 +1506,7 @@ void ff_estimate_b_frame_motion(MpegEncContext * s, · 563 unmodified lines
15061506 dmin= direct_search(s, mb_x, mb_y);
15071507 else
15081508 dmin= INT_MAX;
1509−//FIXME penalty stuff for non mpeg4
1509+// FIXME penalty stuff for non-MPEG-4
15101510 c->skip=0;
15111511 fmin = estimate_motion_b(s, mb_x, mb_y, s->b_forw_mv_table, 0, s->f_code) +
15121512 3 * penalty_factor;
libavcodec/motion_est_template.c+4−4
@@ -432,7 +432,7 @@ static av_always_inline int small_diamond_search(MpegEncContext * s, int *best, · 431 unmodified lines
432432 { /* ensure that the best point is in the MAP as h/qpel refinement needs it */
433433 const unsigned key = (best[1]<<ME_MAP_MV_BITS) + best[0] + map_generation;
434434 const int index= ((best[1]<<ME_MAP_SHIFT) + best[0])&(ME_MAP_SIZE-1);
435− if(map[index]!=key){ //this will be executed only very rarey
435+ if (map[index] != key) { // this will be executed only very rarely
436436 score_map[index]= cmp(s, best[0], best[1], 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);
437437 map[index]= key;
438438 }
@@ -759,7 +759,7 @@ static int sab_diamond_search(MpegEncContext * s, int *best, int dmin, · 320 unmodified lines
759759 if( best[0] < xmax && best[0] > xmin
760760 && best[1] < ymax && best[1] > ymin){
761761 int d;
762− //ensure that the refernece samples for hpel refinement are in the map
762+ // ensure that the reference samples for hpel refinement are in the map
763763 CHECK_MV(best[0]-1, best[1])
764764 CHECK_MV(best[0]+1, best[1])
765765 CHECK_MV(best[0], best[1]-1)
@@ -872,7 +872,7 @@ static av_always_inline int epzs_motion_search_internal(MpegEncContext * s, int · 106 unmodified lines
872872 unsigned map_generation;
873873 int penalty_factor;
874874 const int ref_mv_stride= s->mb_stride; //pass as arg FIXME
875− const int ref_mv_xy= s->mb_x + s->mb_y*ref_mv_stride; //add to last_mv beforepassing FIXME
875+ const int ref_mv_xy = s->mb_x + s->mb_y * ref_mv_stride; // add to last_mv before passing FIXME
876876 me_cmp_func cmpf, chroma_cmpf;
877877
878878 LOAD_COMMON
@@ -973,7 +973,7 @@ static av_always_inline int epzs_motion_search_internal(MpegEncContext * s, int · 94 unmodified lines
973973 return dmin;
974974 }
975975
976−//this function is dedicated to the braindamaged gcc
976+//this function is dedicated to the brain damaged gcc
977977 int ff_epzs_motion_search(MpegEncContext *s, int *mx_ptr, int *my_ptr,
978978 int P[10][2], int src_index, int ref_index,
979979 int16_t (*last_mv)[2], int ref_mv_scale,
libavcodec/motionpixels_tablegen.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Generate a header file for hardcoded motionpixels RGB to YUV table
2+ * Generate a header file for hardcoded motion pixels RGB to YUV table
33 *
44 * Copyright (c) 2009 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
55 *
libavcodec/motionpixels_tablegen.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Header file for hardcoded motionpixels RGB to YUV table
2+ * Header file for hardcoded motion pixels RGB to YUV table
33 *
44 * Copyright (c) 2009 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
55 *
libavcodec/mpeg12.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 common code
2+ * MPEG-1/2 common code
33 * Copyright (c) 2007 Aurelien Jacobs <aurel@gnuage.org>
44 *
55 * This file is part of Libav.
libavcodec/mpeg12data.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 tables
2+ * MPEG-1/2 tables
33 * copyright (c) 2000,2001 Fabrice Bellard
44 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * MPEG1/2 tables.
25+ * MPEG-1/2 tables.
2626 */
2727
2828 #include "mpeg12data.h"
libavcodec/mpeg12data.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 tables
2+ * MPEG-1/2 tables
33 * copyright (c) 2000,2001 Fabrice Bellard
44 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * MPEG1/2 tables.
25+ * MPEG-1/2 tables.
2626 */
2727
2828 #ifndef AVCODEC_MPEG12DATA_H
libavcodec/mpeg12dec.c+5−5
@@ -698,7 +698,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64]) · 697 unmodified lines
698698 if (get_bits1(&s->gb) == 0) {
699699 if (get_bits1(&s->gb) == 0) {
700700 av_log(s->avctx, AV_LOG_ERROR,
701− "invalid mb type in I Frame at %d %d\n",
701+ "Invalid mb type in I-frame at %d %d\n",
702702 s->mb_x, s->mb_y);
703703 return AVERROR_INVALIDDATA;
704704 }
@@ -711,7 +711,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64]) · 6 unmodified lines
711711 mb_type = get_vlc2(&s->gb, ff_mb_ptype_vlc.table, MB_PTYPE_VLC_BITS, 1);
712712 if (mb_type < 0) {
713713 av_log(s->avctx, AV_LOG_ERROR,
714− "invalid mb type in P Frame at %d %d\n", s->mb_x, s->mb_y);
714+ "Invalid mb type in P-frame at %d %d\n", s->mb_x, s->mb_y);
715715 return AVERROR_INVALIDDATA;
716716 }
717717 mb_type = ptype2mb_type[mb_type];
@@ -720,7 +720,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64]) · 2 unmodified lines
720720 mb_type = get_vlc2(&s->gb, ff_mb_btype_vlc.table, MB_BTYPE_VLC_BITS, 1);
721721 if (mb_type < 0) {
722722 av_log(s->avctx, AV_LOG_ERROR,
723− "invalid mb type in B Frame at %d %d\n", s->mb_x, s->mb_y);
723+ "Invalid mb type in B-frame at %d %d\n", s->mb_x, s->mb_y);
724724 return AVERROR_INVALIDDATA;
725725 }
726726 mb_type = btype2mb_type[mb_type];
@@ -1882,7 +1882,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 1155 unmodified lines
18821882 int i;
18831883 if (s->pict_type == AV_PICTURE_TYPE_I) {
18841884 av_log(s->avctx, AV_LOG_ERROR,
1885− "skipped MB in I frame at %d %d\n", s->mb_x, s->mb_y);
1885+ "skipped MB in I-frame at %d %d\n", s->mb_x, s->mb_y);
18861886 return AVERROR_INVALIDDATA;
18871887 }
18881888
@@ -2183,7 +2183,7 @@ static int mpeg_decode_a53_cc(AVCodecContext *avctx, · 294 unmodified lines
21832183 int cc_count = 0;
21842184 int i;
21852185 // There is a caption count field in the data, but it is often
2186− // incorect. So count the number of captions present.
2186+ // incorrect. So count the number of captions present.
21872187 for (i = 5; i + 6 <= buf_size && ((p[i] & 0xfe) == 0xfe); i += 6)
21882188 cc_count++;
21892189 // Transform the DVD format into A53 Part 4 format
libavcodec/mpeg12enc.c+6−6
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 encoder
2+ * MPEG-1/2 encoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * MPEG1/2 encoder
25+ * MPEG-1/2 encoder
2626 */
2727
2828 #include <stdint.h>
@@ -136,12 +136,12 @@ static av_cold int encode_init(AVCodecContext *avctx) · 107 unmodified lines
136136
137137 if (find_frame_rate_index(s) < 0) {
138138 if (s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
139− av_log(avctx, AV_LOG_ERROR, "MPEG1/2 does not support %d/%d fps\n",
139+ av_log(avctx, AV_LOG_ERROR, "MPEG-1/2 does not support %d/%d fps\n",
140140 avctx->time_base.den, avctx->time_base.num);
141141 return -1;
142142 } else {
143143 av_log(avctx, AV_LOG_INFO,
144− "MPEG1/2 does not support %d/%d fps, there may be AV sync issues\n",
144+ "MPEG-1/2 does not support %d/%d fps, there may be AV sync issues\n",
145145 avctx->time_base.den, avctx->time_base.num);
146146 }
147147 }
@@ -214,7 +214,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) · 66 unmodified lines
214214 if (s->current_picture.f->key_frame) {
215215 AVRational framerate = ff_mpeg12_frame_rate_tab[s->frame_rate_index];
216216
217− /* mpeg1 header repeated every gop */
217+ /* MPEG-1 header repeated every GOP */
218218 put_header(s, SEQ_START_CODE);
219219
220220 put_sbits(&s->pb, 12, s->width);
@@ -375,7 +375,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) · 154 unmodified lines
375375 AVFrameSideData *side_data;
376376 mpeg1_encode_sequence_header(s);
377377
378− /* mpeg1 picture header */
378+ /* MPEG-1 picture header */
379379 put_header(s, PICTURE_START_CODE);
380380 /* temporal reference */
381381
libavcodec/mpeg12vlc.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 VLC
2+ * MPEG-1/2 VLC
33 * copyright (c) 2000,2001 Fabrice Bellard
44 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -22,7 +22,7 @@ · 16 unmodified lines
2222
2323 /**
2424 * @file
25− * MPEG1/2 VLC.
25+ * MPEG-1/2 VLC.
2626 */
2727
2828 #ifndef AVCODEC_MPEG12VLC_H
libavcodec/mpeg4data.h+3−3
@@ -1,6 +1,6 @@
11 /*
22 * copyright (c) 2000,2001 Fabrice Bellard
3− * H263+ support
3+ * H.263+ support
44 * copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
66 * This file is part of Libav.
@@ -22,7 +22,7 @@ · 15 unmodified lines
2222
2323 /**
2424 * @file
25− * mpeg4 tables.
25+ * MPEG-4 tables.
2626 */
2727
2828 #ifndef AVCODEC_MPEG4DATA_H
@@ -31,7 +31,7 @@ · 2 unmodified lines
3131 #include <stdint.h>
3232 #include "mpegvideo.h"
3333
34−/* dc encoding for mpeg4 */
34+/* dc encoding for MPEG-4 */
3535 const uint8_t ff_mpeg4_DCtab_lum[13][2] =
3636 {
3737 {3,3}, {3,2}, {2,2}, {2,3}, {1,3}, {1,4}, {1,5}, {1,6}, {1,7},
libavcodec/mpeg4video.c+3−3
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 decoder / encoder common code.
2+ * MPEG-4 decoder / encoder common code
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -57,7 +57,7 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s) · 51 unmodified lines
5757 memset(s->ac_val[2] + c_xy, 0, (c_wrap + 1) * 16 * sizeof(int16_t));
5858
5959 /* clean MV */
60− // we can't clear the MVs as they might be needed by a b frame
60+ // we can't clear the MVs as they might be needed by a B-frame
6161 s->last_mv[0][0][0] =
6262 s->last_mv[0][0][1] =
6363 s->last_mv[1][0][0] =
@@ -67,7 +67,7 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s) · 3 unmodified lines
6767 #define tab_size ((signed)FF_ARRAY_ELEMS(s->direct_scale_mv[0]))
6868 #define tab_bias (tab_size / 2)
6969
70−// used by mpeg4 and rv10 decoder
70+// used by MPEG-4 and rv10 decoder
7171 void ff_mpeg4_init_direct_mv(MpegEncContext *s)
7272 {
7373 int i;
libavcodec/mpeg4video.h+2−2
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 encoder/decoder internal header.
2+ * MPEG-4 encoder/decoder internal header.
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -102,7 +102,7 @@ typedef struct Mpeg4DecContext { · 96 unmodified lines
102102 int cplx_estimation_trash_b;
103103 } Mpeg4DecContext;
104104
105−/* dc encoding for mpeg4 */
105+/* dc encoding for MPEG-4 */
106106 extern const uint8_t ff_mpeg4_DCtab_lum[13][2];
107107 extern const uint8_t ff_mpeg4_DCtab_chrom[13][2];
108108
libavcodec/mpeg4video_parser.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 Video frame extraction
2+ * MPEG-4 video frame extraction
33 * Copyright (c) 2003 Fabrice Bellard
44 * Copyright (c) 2003 Michael Niedermayer
55 *
libavcodec/mpeg4video_parser.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 video parser prototypes
2+ * MPEG-4 video parser prototypes
33 * Copyright (c) 2003 Fabrice Bellard
44 * Copyright (c) 2003 Michael Niedermayer
55 *
libavcodec/mpeg4videodec.c+15−15
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 decoder.
2+ * MPEG-4 decoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -202,7 +202,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g · 196 unmodified lines
202202 while ((1 << alpha) < w)
203203 alpha++;
204204 while ((1 << beta) < h)
205− beta++; /* typo in the mpeg4 std for the definition of w' and h' */
205+ beta++; /* typo in the MPEG-4 std for the definition of w' and h' */
206206 w2 = 1 << alpha;
207207 h2 = 1 << beta;
208208
@@ -225,7 +225,7 @@ static int mpeg4_decode_sprite_trajectory(Mpeg4DecContext *ctx, GetBitContext *g · 16 unmodified lines
225225 /* sprite_ref[3][0] = (a >> 1) * (2 * vop_ref[3][0] + d[0][0] + d[1][0] + d[2][0] + d[3][0]);
226226 * sprite_ref[3][1] = (a >> 1) * (2 * vop_ref[3][1] + d[0][1] + d[1][1] + d[2][1] + d[3][1]); */
227227
228− /* this is mostly identical to the mpeg4 std (and is totally unreadable
228+ /* This is mostly identical to the MPEG-4 std (and is totally unreadable
229229 * because of that...). Perhaps it should be reordered to be more readable.
230230 * The idea behind this virtual_ref mess is to be able to use shifts later
231231 * per pixel instead of divides so the distance between points is converted
@@ -1419,7 +1419,7 @@ static int mpeg4_decode_mb(MpegEncContext *s, int16_t block[6][64]) · 1187 unmodified lines
14191419 ff_thread_await_progress(&s->next_picture_ptr->tf, s->mb_y, 0);
14201420 }
14211421
1422− /* if we skipped it in the future P Frame than skip it now too */
1422+ /* if we skipped it in the future P-frame than skip it now too */
14231423 s->mb_skipped = s->next_picture.mbskip_table[s->mb_y * s->mb_stride + s->mb_x]; // Note, skiptab=0 if last was GMC
14241424
14251425 if (s->mb_skipped) {
@@ -1709,7 +1709,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 283 unmodified lines
17091709 }
17101710 } else {
17111711 /* is setting low delay flag only once the smartest thing to do?
1712− * low delay detection won't be overriden. */
1712+ * low delay detection will not be overridden. */
17131713 if (s->picture_number == 0)
17141714 s->low_delay = 0;
17151715 }
@@ -1765,7 +1765,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 49 unmodified lines
17651765 s->interlaced_dct = 0;
17661766 if (!get_bits1(gb) && (s->avctx->debug & FF_DEBUG_PICT_INFO))
17671767 av_log(s->avctx, AV_LOG_INFO, /* OBMC Disable */
1768− "MPEG4 OBMC not supported (very likely buggy encoder)\n");
1768+ "MPEG-4 OBMC not supported (very likely buggy encoder)\n");
17691769 if (vo_ver_id == 1)
17701770 ctx->vol_sprite_usage = get_bits1(gb); /* vol_sprite_usage */
17711771 else
@@ -1892,7 +1892,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 120 unmodified lines
18921892 ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* intra_cae */
18931893 ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* inter_cae */
18941894 ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* no_update */
1895− ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* upampling */
1895+ ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* upsampling */
18961896 }
18971897 if (!get_bits1(gb)) {
18981898 ctx->cplx_estimation_trash_i += 8 * get_bits1(gb); /* intra_blocks */
@@ -2022,7 +2022,7 @@ static int decode_user_data(Mpeg4DecContext *ctx, GetBitContext *gb) · 123 unmodified lines
20222022 s->divx_packed = e == 3 && last == 'p';
20232023 if (s->divx_packed && !ctx->showed_packed_warning) {
20242024 av_log(s->avctx, AV_LOG_WARNING,
2025− "Invalid and inefficient vfw-avi packed B frames detected\n");
2025+ "Invalid and inefficient vfw-avi packed B-frames detected\n");
20262026 ctx->showed_packed_warning = 1;
20272027 }
20282028 }
@@ -2138,7 +2138,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 109 unmodified lines
21382138 if (s->pp_time <= s->pb_time ||
21392139 s->pp_time <= s->pp_time - s->pb_time ||
21402140 s->pp_time <= 0) {
2141− /* messed up order, maybe after seeking? skipping current b-frame */
2141+ /* messed up order, maybe after seeking? skipping current B-frame */
21422142 return FRAME_SKIPPED;
21432143 }
21442144 ff_mpeg4_init_direct_mv(s);
@@ -2237,7 +2237,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 92 unmodified lines
22372237 s->chroma_qscale = s->qscale = get_bits(gb, s->quant_precision);
22382238 if (s->qscale == 0) {
22392239 av_log(s->avctx, AV_LOG_ERROR,
2240− "Error, header damaged or not MPEG4 header (qscale=0)\n");
2240+ "Error, header damaged or not MPEG-4 header (qscale=0)\n");
22412241 return -1; // makes no sense to continue, as there is nothing left from the image then
22422242 }
22432243
@@ -2245,7 +2245,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 1 unmodified line
22452245 s->f_code = get_bits(gb, 3); /* fcode_for */
22462246 if (s->f_code == 0) {
22472247 av_log(s->avctx, AV_LOG_ERROR,
2248− "Error, header damaged or not MPEG4 header (f_code=0)\n");
2248+ "Error, header damaged or not MPEG-4 header (f_code=0)\n");
22492249 return -1; // makes no sense to continue, as there is nothing left from the image then
22502250 }
22512251 } else
@@ -2285,7 +2285,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 33 unmodified lines
22852285 }
22862286 }
22872287 /* detect buggy encoders which don't set the low_delay flag
2288− * (divx4/xvid/opendivx). Note we cannot detect divx5 without b-frames
2288+ * (divx4/xvid/opendivx). Note we cannot detect divx5 without B-frames
22892289 * easily (although it's buggy too) */
22902290 if (s->vo_type == 0 && ctx->vol_control_parameters == 0 &&
22912291 ctx->divx_version == -1 && s->picture_number == 0) {
@@ -2308,7 +2308,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) · 16 unmodified lines
23082308 }
23092309
23102310 /**
2311− * Decode mpeg4 headers.
2311+ * Decode MPEG-4 headers.
23122312 * @return <0 if no VOP found (or a damaged one)
23132313 * FRAME_SKIPPED if a not coded VOP is found
23142314 * 0 if a VOP is found
@@ -2491,7 +2491,7 @@ int ff_mpeg4_frame_end(AVCodecContext *avctx, const uint8_t *buf, int buf_size) · 176 unmodified lines
24912491 Mpeg4DecContext *ctx = avctx->priv_data;
24922492 MpegEncContext *s = &ctx->m;
24932493
2494− /* divx 5.01+ bistream reorder stuff */
2494+ /* divx 5.01+ bitstream reorder stuff */
24952495 if (s->divx_packed) {
24962496 int current_pos = get_bits_count(&s->gb) >> 3;
24972497 int startcode_found = 0;
@@ -2590,7 +2590,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 92 unmodified lines
25902590 }
25912591
25922592 s->h263_pred = 1;
2593− s->low_delay = 0; /* default, might be overriden in the vol header during header parsing */
2593+ s->low_delay = 0; /* default, might be overridden in the vol header during header parsing */
25942594 s->decode_mb = mpeg4_decode_mb;
25952595 ctx->time_increment_bits = 4; /* default value for broken headers */
25962596
libavcodec/mpeg4videoenc.c+13−13
@@ -1,5 +1,5 @@
11 /*
2− * MPEG4 encoder.
2+ * MPEG-4 encoder
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at>
55 *
@@ -29,7 +29,7 @@ · 23 unmodified lines
2929 #include "mpeg4video.h"
3030
3131 /* The uni_DCtab_* tables below contain unified bits+length tables to encode DC
32− * differences in mpeg4. Unified in the sense that the specification specifies
32+ * differences in MPEG-4. Unified in the sense that the specification specifies
3333 * this encoding in several steps. */
3434 static uint8_t uni_DCtab_lum_len[512];
3535 static uint8_t uni_DCtab_chrom_len[512];
@@ -47,7 +47,7 @@ static uint8_t uni_mpeg4_inter_rl_len[64 * 64 * 2 * 2]; · 11 unmodified lines
4747 //#define UNI_MPEG4_ENC_INDEX(last, run, level) ((last) * 128 * 64 + (run) + (level) * 64)
4848 #define UNI_MPEG4_ENC_INDEX(last, run, level) ((last) * 128 * 64 + (run) * 128 + (level))
4949
50−/* mpeg4
50+/* MPEG-4
5151 * inter
5252 * max level: 24/6
5353 * max run: 53/63
@@ -120,7 +120,7 @@ static inline void restore_ac_coeffs(MpegEncContext *s, int16_t block[6][64], · 66 unmodified lines
120120 }
121121
122122 /**
123− * Return the optimal value (0 or 1) for the ac_pred element for the given MB in mpeg4.
123+ * Return the optimal value (0 or 1) for the ac_pred element for the given MB in MPEG-4.
124124 * This function will also update s->block_last_index and s->ac_val.
125125 * @param[in,out] block MB coefficients, these will be updated if 1 is returned
126126 * @param[in] dir ac prediction direction for each 8x8 block
@@ -208,7 +208,7 @@ static inline int decide_ac_pred(MpegEncContext *s, int16_t block[6][64], · 81 unmodified lines
208208 }
209209
210210 /**
211− * modify mb_type & qscale so that encoding is acually possible in mpeg4
211+ * modify mb_type & qscale so that encoding is actually possible in MPEG-4
212212 */
213213 void ff_clean_mpeg4_qscales(MpegEncContext *s)
214214 {
@@ -220,7 +220,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s) · 5 unmodified lines
220220 if (s->pict_type == AV_PICTURE_TYPE_B) {
221221 int odd = 0;
222222 /* ok, come on, this isn't funny anymore, there's more code for
223− * handling this mpeg4 mess than for the actual adaptive quantization */
223+ * handling this MPEG-4 mess than for the actual adaptive quantization */
224224
225225 for (i = 0; i < s->mb_num; i++) {
226226 int mb_xy = s->mb_index2xy[i];
@@ -318,7 +318,7 @@ static inline void mpeg4_encode_block(MpegEncContext *s, · 91 unmodified lines
318318 const int last_index = s->block_last_index[n];
319319
320320 if (s->mb_intra) { // Note gcc (3.2.1 at least) will optimize this away
321− /* mpeg4 based DC predictor */
321+ /* MPEG-4 based DC predictor */
322322 mpeg4_encode_dc(dc_pb, intra_dc, n);
323323 if (last_index < 1)
324324 return;
@@ -378,7 +378,7 @@ static int mpeg4_get_block_length(MpegEncContext *s, · 53 unmodified lines
378378 int len = 0;
379379
380380 if (s->mb_intra) { // Note gcc (3.2.1 at least) will optimize this away
381− /* mpeg4 based DC predictor */
381+ /* MPEG-4 based DC predictor */
382382 len += mpeg4_get_dc_length(intra_dc, n);
383383 if (last_index < 1)
384384 return len;
@@ -529,7 +529,7 @@ void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], · 144 unmodified lines
529529 assert((s->dquant & 1) == 0);
530530 assert(mb_type >= 0);
531531
532− /* nothing to do if this MB was skipped in the next P Frame */
532+ /* nothing to do if this MB was skipped in the next P-frame */
533533 if (s->next_picture.mbskip_table[s->mb_y * s->mb_stride + s->mb_x]) { // FIXME avoid DCT & ...
534534 s->skip_count++;
535535 s->mv[0][0][0] =
@@ -659,7 +659,7 @@ void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], · 123 unmodified lines
659659
660660 if ((cbp | motion_x | motion_y | s->dquant) == 0 &&
661661 s->mv_type == MV_TYPE_16X16) {
662− /* check if the B frames can skip it too, as we must skip it
662+ /* Check if the B-frames can skip it too, as we must skip it
663663 * if we skip here why didn't they just compress
664664 * the skip-mb bits instead of reusing them ?! */
665665 if (s->max_b_frames > 0) {
@@ -876,7 +876,7 @@ void ff_mpeg4_encode_mb(MpegEncContext *s, int16_t block[6][64], · 210 unmodified lines
876876 }
877877
878878 /**
879− * add mpeg4 stuffing bits (01...1)
879+ * add MPEG-4 stuffing bits (01...1)
880880 */
881881 void ff_mpeg4_stuffing(PutBitContext *pbc)
882882 {
@@ -1045,7 +1045,7 @@ static void mpeg4_encode_vol_header(MpegEncContext *s, · 162 unmodified lines
10451045 put_bits(&s->pb, 2, 0); /* sprite enable */
10461046
10471047 put_bits(&s->pb, 1, 0); /* not 8 bit == false */
1048− put_bits(&s->pb, 1, s->mpeg_quant); /* quant type= (0=h263 style)*/
1048+ put_bits(&s->pb, 1, s->mpeg_quant); /* quant type = (0 = H.263 style) */
10491049
10501050 if (s->mpeg_quant) {
10511051 ff_write_quant_matrix(&s->pb, s->avctx->intra_matrix);
@@ -1076,7 +1076,7 @@ static void mpeg4_encode_vol_header(MpegEncContext *s, · 24 unmodified lines
10761076 }
10771077 }
10781078
1079−/* write mpeg4 VOP header */
1079+/* write MPEG-4 VOP header */
10801080 void ff_mpeg4_encode_picture_header(MpegEncContext *s, int picture_number)
10811081 {
10821082 int time_incr;
libavcodec/mpegaudiodec_template.c+1−1
@@ -1397,7 +1397,7 @@ static int mp_decode_layer3(MPADecodeContext *s) · 1396 unmodified lines
13971397 uint8_t *sc;
13981398 int slen, slen1, slen2;
13991399
1400− /* MPEG1 scale factors */
1400+ /* MPEG-1 scale factors */
14011401 slen1 = slen_table[0][g->scalefac_compress];
14021402 slen2 = slen_table[1][g->scalefac_compress];
14031403 ff_dlog(s->avctx, "slen1=%d slen2=%d\n", slen1, slen2);
libavcodec/mpegaudiodecheader.h+1−1
@@ -52,7 +52,7 @@ typedef struct MPADecodeHeader { · 51 unmodified lines
5252 that the frame size must be computed externally */
5353 int avpriv_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header);
5454
55−/* useful helper to get mpeg audio stream infos. Return -1 if error in
55+/* useful helper to get MPEG audio stream info. Return -1 if error in
5656 header, otherwise the coded frame size in bytes */
5757 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate,
5858 int *channels, int *frame_size, int *bitrate);
libavcodec/mpegaudioenc.c+2−2
@@ -583,7 +583,7 @@ static void compute_bit_allocation(MpegAudioContext *s, · 582 unmodified lines
583583 }
584584
585585 /*
586− * Output the mpeg audio layer 2 frame. Note how the code is small
586+ * Output the MPEG audio layer 2 frame. Note how the code is small
587587 * compared to other encoders :-)
588588 */
589589 static void encode_frame(MpegAudioContext *s,
@@ -598,7 +598,7 @@ static void encode_frame(MpegAudioContext *s, · 8 unmodified lines
598598 /* header */
599599
600600 put_bits(p, 12, 0xfff);
601− put_bits(p, 1, 1 - s->lsf); /* 1 = mpeg1 ID, 0 = mpeg2 lsf ID */
601+ put_bits(p, 1, 1 - s->lsf); /* 1 = MPEG-1 ID, 0 = MPEG-2 lsf ID */
602602 put_bits(p, 2, 4-2); /* layer 2 */
603603 put_bits(p, 1, 1); /* no error protection */
604604 put_bits(p, 4, s->bitrate_index);
libavcodec/mpegpicture.c+2−2
@@ -59,8 +59,8 @@ int ff_mpeg_framesize_alloc(AVCodecContext *avctx, MotionEstContext *me, · 58 unmodified lines
5959 int alloc_size = FFALIGN(FFABS(linesize) + 32, 32);
6060
6161 // edge emu needs blocksize + filter length - 1
62− // (= 17x17 for halfpel / 21x21 for h264)
63− // VC1 computes luma and chroma simultaneously and needs 19X19 + 9x9
62+ // (= 17x17 for halfpel / 21x21 for H.264)
63+ // VC-1 computes luma and chroma simultaneously and needs 19X19 + 9x9
6464 // at uvlinesize. It supports only YUV420 so 24x24 is enough
6565 // linesize * interlaced * MBsize
6666 FF_ALLOCZ_OR_GOTO(avctx, sc->edge_emu_buffer, alloc_size * 2 * 24,
libavcodec/mpegvideo.c+10−10
@@ -61,7 +61,7 @@ static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s, · 60 unmodified lines
6161 block[0] = block[0] * s->y_dc_scale;
6262 else
6363 block[0] = block[0] * s->c_dc_scale;
64− /* XXX: only mpeg1 */
64+ /* XXX: only MPEG-1 */
6565 quant_matrix = s->intra_matrix;
6666 for(i=1;i<=nCoeffs;i++) {
6767 int j= s->intra_scantable.permutated[i];
@@ -529,7 +529,7 @@ do {\ · 461 unmodified lines
529529 s->next_p_frame_damaged = s1->next_p_frame_damaged;
530530 s->workaround_bugs = s1->workaround_bugs;
531531
532− // MPEG4 timing info
532+ // MPEG-4 timing info
533533 memcpy(&s->last_time_base, &s1->last_time_base,
534534 (char *) &s1->pb_field_time + sizeof(s1->pb_field_time) -
535535 (char *) &s1->last_time_base);
@@ -555,7 +555,7 @@ do {\ · 19 unmodified lines
555555 AV_INPUT_BUFFER_PADDING_SIZE);
556556 }
557557
558− // linesize dependend scratch buffer allocation
558+ // linesize-dependent scratch buffer allocation
559559 if (!s->sc.edge_emu_buffer)
560560 if (s1->linesize) {
561561 if (ff_mpeg_framesize_alloc(s->avctx, &s->me,
@@ -570,7 +570,7 @@ do {\ · 8 unmodified lines
570570 return AVERROR_BUG;
571571 }
572572
573− // MPEG2/interlacing info
573+ // MPEG-2/interlacing info
574574 memcpy(&s->progressive_sequence, &s1->progressive_sequence,
575575 (char *) &s1->rtp_mode - (char *) &s1->progressive_sequence);
576576
@@ -630,7 +630,7 @@ static int init_context_frame(MpegEncContext *s) · 53 unmodified lines
630630 mb_array_size = s->mb_height * s->mb_stride;
631631 mv_table_size = (s->mb_height + 2) * s->mb_stride + 1;
632632
633− /* set default edge pos, will be overriden
633+ /* set default edge pos, will be overridden
634634 * in decode_header if needed */
635635 s->h_edge_pos = s->mb_width * 16;
636636 s->v_edge_pos = s->mb_height * 16;
@@ -649,7 +649,7 @@ static int init_context_frame(MpegEncContext *s) · 12 unmodified lines
649649 yc_size = y_size + 2 * c_size;
650650
651651 FF_ALLOCZ_OR_GOTO(s->avctx, s->mb_index2xy, (s->mb_num + 1) * sizeof(int),
652− fail); // error ressilience code looks cleaner with this
652+ fail); // error resilience code looks cleaner with this
653653 for (y = 0; y < s->mb_height; y++)
654654 for (x = 0; x < s->mb_width; x++)
655655 s->mb_index2xy[x + y * s->mb_width] = x + y * s->mb_stride;
@@ -749,7 +749,7 @@ static int init_context_frame(MpegEncContext *s) · 93 unmodified lines
749749
750750 /* init macroblock skip table */
751751 FF_ALLOCZ_OR_GOTO(s->avctx, s->mbskip_table, mb_array_size + 2, fail);
752− // Note the + 1 is for a quicker mpeg4 slice_end detection
752+ // Note the + 1 is for a quicker MPEG-4 slice_end detection
753753
754754 return ff_mpeg_er_init(s);
755755 fail:
@@ -1063,7 +1063,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 307 unmodified lines
10631063 }
10641064
10651065 /* release forgotten pictures */
1066− /* if (mpeg124/h263) */
1066+ /* if (MPEG-124 / H.263) */
10671067 for (i = 0; i < MAX_PICTURE_COUNT; i++) {
10681068 if (&s->picture[i] != s->last_picture_ptr &&
10691069 &s->picture[i] != s->next_picture_ptr &&
@@ -1236,8 +1236,8 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) · 166 unmodified lines
12361236 }
12371237
12381238 /* set dequantizer, we can't do it during init as
1239− * it might change for mpeg4 and we can't do it in the header
1240− * decode as init is not called for mpeg4 there yet */
1239+ * it might change for MPEG-4 and we can't do it in the header
1240+ * decode as init is not called for MPEG-4 there yet */
12411241 if (s->mpeg_quant || s->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
12421242 s->dct_unquantize_intra = s->dct_unquantize_mpeg2_intra;
12431243 s->dct_unquantize_inter = s->dct_unquantize_mpeg2_inter;
libavcodec/mpegvideo.h+44−44
@@ -79,16 +79,16 @@ typedef struct MpegEncContext { · 78 unmodified lines
7979 int y_dc_scale, c_dc_scale;
8080 int ac_pred;
8181 int block_last_index[12]; ///< last non zero coefficient in block
82− int h263_aic; ///< Advanded INTRA Coding (AIC)
82+ int h263_aic; ///< Advanced INTRA Coding (AIC)
8383
8484 /* scantables */
85− ScanTable inter_scantable; ///< if inter == intra then intra should be used to reduce tha cache usage
85+ ScanTable inter_scantable; ///< if inter == intra then intra should be used to reduce the cache usage
8686 ScanTable intra_scantable;
8787 ScanTable intra_h_scantable;
8888 ScanTable intra_v_scantable;
8989
9090 /* WARNING: changes above this line require updates to hardcoded
91− * offsets used in asm. */
91+ * offsets used in ASM. */
9292
9393 struct AVCodecContext *avctx;
9494 /* the following parameters must be initialized before encoding */
@@ -97,20 +97,20 @@ typedef struct MpegEncContext { · 2 unmodified lines
9797 int intra_only; ///< if true, only intra pictures are generated
9898 int bit_rate; ///< wanted bit rate
9999 enum OutputFormat out_format; ///< output format
100− int h263_pred; ///< use mpeg4/h263 ac/dc predictions
101− int pb_frame; ///< PB frame mode (0 = none, 1 = base, 2 = improved)
100+ int h263_pred; ///< use MPEG-4/H.263 ac/dc predictions
101+ int pb_frame; ///< PB-frame mode (0 = none, 1 = base, 2 = improved)
102102
103103 /* the following codec id fields are deprecated in favor of codec_id */
104− int h263_plus; ///< h263 plus headers
105− int h263_flv; ///< use flv h263 header
104+ int h263_plus; ///< H.263+ headers
105+ int h263_flv; ///< use flv H.263 header
106106
107107 enum AVCodecID codec_id; /* see AV_CODEC_ID_xxx */
108108 int fixed_qscale; ///< fixed qscale if non zero
109109 int encoding; ///< true if we are encoding (vs decoding)
110− int max_b_frames; ///< max number of b-frames for encoding
110+ int max_b_frames; ///< max number of B-frames for encoding
111111 int luma_elim_threshold;
112112 int chroma_elim_threshold;
113− int strict_std_compliance; ///< strictly follow the std (MPEG4, ...)
113+ int strict_std_compliance; ///< strictly follow the std (MPEG-4, ...)
114114 int workaround_bugs; ///< workaround bugs in encoders which cannot be detected automatically
115115 int codec_tag; ///< internal codec_tag upper case converted from avctx codec_tag
116116 /* the following fields are managed internally by the encoder */
@@ -130,7 +130,7 @@ typedef struct MpegEncContext { · 13 unmodified lines
130130 ptrdiff_t uvlinesize; ///< line size, for chroma in bytes, may be different from width
131131 Picture *picture; ///< main picture buffer
132132 Picture **input_picture; ///< next pictures on display order for encoding
133− Picture **reordered_input_picture; ///< pointer to the next pictures in codedorder for encoding
133+ Picture **reordered_input_picture; ///< pointer to the next pictures in coded order for encoding
134134
135135 int64_t user_specified_pts; ///< last non-zero pts from AVFrame which was passed into avcodec_encode_video2()
136136 /**
@@ -177,19 +177,19 @@ typedef struct MpegEncContext { · 40 unmodified lines
177177 Picture *last_picture_ptr; ///< pointer to the previous picture.
178178 Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred)
179179 Picture *current_picture_ptr; ///< pointer to the current picture
180− int last_dc[3]; ///< last DC values for MPEG1
180+ int last_dc[3]; ///< last DC values for MPEG-1
181181 int16_t *dc_val_base;
182− int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous
182+ int16_t *dc_val[3]; ///< used for MPEG-4 DC prediction, all 3 arrays must be continuous
183183 const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table
184184 const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table
185− const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263)
185+ const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (H.263)
186186 uint8_t *coded_block_base;
187187 uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1)
188188 int16_t (*ac_val_base)[16];
189− int16_t (*ac_val[3])[16]; ///< used for for mpeg4 AC prediction, all 3 arrays must be continuous
189+ int16_t (*ac_val[3])[16]; ///< used for for MPEG-4 AC prediction, all 3 arrays must be continuous
190190 int mb_skipped; ///< MUST BE SET only during DECODING
191191 uint8_t *mbskip_table; /**< used to avoid copy if macroblock skipped (for black regions for example)
192− and used for b-frame encoding & decoding (contains skip table of next P Frame) */
192+ and used for B-frame encoding & decoding (contains skip table of next P-frame) */
193193 uint8_t *mbintra_table; ///< used to avoid setting {ac, dc, cbp}-pred stuff to zero on inter MB decoding
194194 uint8_t *cbp_table; ///< used to store cbp, ac_pred for partitioned decoding
195195 uint8_t *pred_dir_table; ///< used to store pred_dir for partitioned decoding
@@ -198,14 +198,14 @@ typedef struct MpegEncContext { · 2 unmodified lines
198198
199199 int qscale; ///< QP
200200 int chroma_qscale; ///< chroma QP
201− unsigned int lambda; ///< lagrange multipler used in rate distortion
201+ unsigned int lambda; ///< Lagrange multiplier used in rate distortion
202202 unsigned int lambda2; ///< (lambda*lambda) >> FF_LAMBDA_SHIFT
203203 int *lambda_table;
204204 int adaptive_quant; ///< use adaptive quantization
205205 int dquant; ///< qscale difference to prev qscale
206206 int pict_type; ///< AV_PICTURE_TYPE_I, AV_PICTURE_TYPE_P, AV_PICTURE_TYPE_B, ...
207207 int last_pict_type; //FIXME removes
208− int last_non_b_pict_type; ///< used for mpeg4 gmc b-frames & ratecontrol
208+ int last_non_b_pict_type; ///< used for MPEG-4 gmc B-frames & ratecontrol
209209 int droppable;
210210 int frame_rate_index;
211211 int last_lambda_for[5]; ///< last lambda for a specific pict type
@@ -213,7 +213,7 @@ typedef struct MpegEncContext { · 1 unmodified line
213213
214214 /* motion compensation */
215215 int unrestricted_mv; ///< mv can point outside of the coded picture
216− int h263_long_vectors; ///< use horrible h263v1 long vector mode
216+ int h263_long_vectors; ///< use horrible H.263v1 long vector mode
217217
218218 BlockDSPContext bdsp;
219219 FDCTDSPContext fdsp;
@@ -227,7 +227,7 @@ typedef struct MpegEncContext { · 7 unmodified lines
227227 VideoDSPContext vdsp;
228228 H263DSPContext h263dsp;
229229 int f_code; ///< forward MV resolution
230− int b_code; ///< backward MV resolution for B Frames (mpeg4)
230+ int b_code; ///< backward MV resolution for B-frames (MPEG-4)
231231 int16_t (*p_mv_table_base)[2];
232232 int16_t (*b_forw_mv_table_base)[2];
233233 int16_t (*b_back_mv_table_base)[2];
@@ -236,14 +236,14 @@ typedef struct MpegEncContext { · 2 unmodified lines
236236 int16_t (*b_direct_mv_table_base)[2];
237237 int16_t (*p_field_mv_table_base[2][2])[2];
238238 int16_t (*b_field_mv_table_base[2][2][2])[2];
239− int16_t (*p_mv_table)[2]; ///< MV table (1MV per MB) p-frame encoding
240− int16_t (*b_forw_mv_table)[2]; ///< MV table (1MV per MB) forward mode b-frame encoding
241− int16_t (*b_back_mv_table)[2]; ///< MV table (1MV per MB) backward mode b-frame encoding
242− int16_t (*b_bidir_forw_mv_table)[2]; ///< MV table (1MV per MB) bidir mode b-frame encoding
243− int16_t (*b_bidir_back_mv_table)[2]; ///< MV table (1MV per MB) bidir mode b-frame encoding
244− int16_t (*b_direct_mv_table)[2]; ///< MV table (1MV per MB) direct mode b-frame encoding
245− int16_t (*p_field_mv_table[2][2])[2]; ///< MV table (2MV per MB) interlaced p-frame encoding
246− int16_t (*b_field_mv_table[2][2][2])[2];///< MV table (4MV per MB) interlaced b-frame encoding
239+ int16_t (*p_mv_table)[2]; ///< MV table (1MV per MB) P-frame encoding
240+ int16_t (*b_forw_mv_table)[2]; ///< MV table (1MV per MB) forward mode B-frame encoding
241+ int16_t (*b_back_mv_table)[2]; ///< MV table (1MV per MB) backward mode B-frame encoding
242+ int16_t (*b_bidir_forw_mv_table)[2]; ///< MV table (1MV per MB) bidir mode B-frame encoding
243+ int16_t (*b_bidir_back_mv_table)[2]; ///< MV table (1MV per MB) bidir mode B-frame encoding
244+ int16_t (*b_direct_mv_table)[2]; ///< MV table (1MV per MB) direct mode B-frame encoding
245+ int16_t (*p_field_mv_table[2][2])[2]; ///< MV table (2MV per MB) interlaced P-frame encoding
246+ int16_t (*b_field_mv_table[2][2][2])[2];///< MV table (4MV per MB) interlaced B-frame encoding
247247 uint8_t (*p_field_select_table[2]);
248248 uint8_t (*b_field_select_table[2][2]);
249249 #if FF_API_MOTION_EST
@@ -255,10 +255,10 @@ typedef struct MpegEncContext { · 5 unmodified lines
255255 int mv_dir;
256256 #define MV_DIR_FORWARD 1
257257 #define MV_DIR_BACKWARD 2
258−#define MV_DIRECT 4 ///< bidirectional mode where the difference equals the MV of the last P/S/I-Frame (mpeg4)
258+#define MV_DIRECT 4 ///< bidirectional mode where the difference equals the MV of the last P/S/I-Frame (MPEG-4)
259259 int mv_type;
260260 #define MV_TYPE_16X16 0 ///< 1 vector for the whole mb
261−#define MV_TYPE_8X8 1 ///< 4 vectors (h263, mpeg4 4MV)
261+#define MV_TYPE_8X8 1 ///< 4 vectors (H.263, MPEG-4 4MV)
262262 #define MV_TYPE_16X8 2 ///< 2 vectors, one per 16x8 block
263263 #define MV_TYPE_FIELD 3 ///< 2 vectors, one per field
264264 #define MV_TYPE_DMV 4 ///< 2 vectors, special mpeg2 Dual Prime Vectors
@@ -269,14 +269,14 @@ typedef struct MpegEncContext { · 4 unmodified lines
269269 */
270270 int mv[2][4][2];
271271 int field_select[2][2];
272− int last_mv[2][2][2]; ///< last MV, used for MV prediction in MPEG1 & B-frame MPEG4
272+ int last_mv[2][2][2]; ///< last MV, used for MV prediction in MPEG-1 & B-frame MPEG-4
273273 uint8_t *fcode_tab; ///< smallest fcode needed for each MV
274274 int16_t direct_scale_mv[2][64]; ///< precomputed to avoid divisions in ff_mpeg4_set_direct_mv
275275
276276 MotionEstContext me;
277277
278− int no_rounding; /**< apply no rounding to motion compensation (MPEG4, msmpeg4, ...)
279− for b-frames rounding mode is always 0 */
278+ int no_rounding; /**< apply no rounding to motion compensation (MPEG-4, msmpeg4, ...)
279+ for B-frames rounding mode is always 0 */
280280
281281 /* macroblock layer */
282282 int mb_x, mb_y;
@@ -345,7 +345,7 @@ typedef struct MpegEncContext { · 62 unmodified lines
345345 int resync_mb_y; ///< y position of last resync marker
346346 GetBitContext last_resync_gb; ///< used to search for the next resync marker
347347 int mb_num_left; ///< number of MBs left in this video packet (for partitioned Slices only)
348− int next_p_frame_damaged; ///< set if the next p frame is damaged, to avoid showing trashed b frames
348+ int next_p_frame_damaged; ///< set if the next p frame is damaged, to avoid showing trashed B-frames
349349
350350 ParseContext parse_context;
351351
@@ -359,7 +359,7 @@ typedef struct MpegEncContext { · 7 unmodified lines
359359 int rc_strategy;
360360
361361 /* H.263+ specific */
362− int umvplus; ///< == H263+ && unrestricted_mv
362+ int umvplus; ///< == H.263+ && unrestricted_mv
363363 int h263_aic_dir; ///< AIC direction: 0 = left, 1 = top
364364 int h263_slice_structured;
365365 int alt_inter_vlc; ///< alternative inter vlc
@@ -367,7 +367,7 @@ typedef struct MpegEncContext { · 1 unmodified line
367367 int loop_filter;
368368 int custom_pcf;
369369
370− /* mpeg4 specific */
370+ /* MPEG-4 specific */
371371 ///< number of bits to represent the fractional part of time (encoder only)
372372 int time_increment_bits;
373373 int last_time_base;
@@ -388,12 +388,12 @@ typedef struct MpegEncContext { · 14 unmodified lines
388388 int sprite_warping_accuracy;
389389 int data_partitioning; ///< data partitioning flag from header
390390 int partitioned_frame; ///< is current frame partitioned
391− int low_delay; ///< no reordering needed / has no b-frames
391+ int low_delay; ///< no reordering needed / has no B-frames
392392 int vo_type;
393393 PutBitContext tex_pb; ///< used for data partitioned VOPs
394394 PutBitContext pb2; ///< used for data partitioned VOPs
395395 int mpeg_quant;
396− int padding_bug_score; ///< used to detect the VERY common padding bug in MPEG4
396+ int padding_bug_score; ///< used to detect the VERY common padding bug in MPEG-4
397397
398398 /* divx specific, used to workaround (many) bugs in divx5 */
399399 int divx_packed;
@@ -416,7 +416,7 @@ typedef struct MpegEncContext { · 16 unmodified lines
416416 int dc_table_index;
417417 int use_skip_mb_code;
418418 int slice_height; ///< in macroblocks
419− int first_slice_line; ///< used in mpeg4 too to handle resync markers
419+ int first_slice_line; ///< used in MPEG-4 too to handle resync markers
420420 int flipflop_rounding;
421421 int msmpeg4_version; ///< 0=not msmpeg4, 1=mp41, 2=mp42, 3=mp43/divx3 4=wmv1/7 5=wmv2/8
422422 int per_mb_rl_table;
@@ -430,9 +430,9 @@ typedef struct MpegEncContext { · 7 unmodified lines
430430 /* decompression specific */
431431 GetBitContext gb;
432432
433− /* Mpeg1 specific */
434− int gop_picture_number; ///< index of the first picture of a GOP based on fake_pic_num & mpeg1 specific
435− int last_mv_dir; ///< last mv_dir, used for b frame encoding
433+ /* MPEG-1 specific */
434+ int gop_picture_number; ///< index of the first picture of a GOP based on fake_pic_num & MPEG-1 specific
435+ int last_mv_dir; ///< last mv_dir, used for B-frame encoding
436436 uint8_t *vbv_delay_ptr; ///< pointer to vbv_delay in the bitstream
437437
438438 /* MPEG-2-specific - I wished not to have to support this mess. */
@@ -493,9 +493,9 @@ typedef struct MpegEncContext { · 54 unmodified lines
493493 int16_t *block/*align 16*/, int n, int qscale);
494494 void (*dct_unquantize_h263_inter)(struct MpegEncContext *s,
495495 int16_t *block/*align 16*/, int n, int qscale);
496− void (*dct_unquantize_intra)(struct MpegEncContext *s, // unquantizer to use (mpeg4 can use both)
496+ void (*dct_unquantize_intra)(struct MpegEncContext *s, // unquantizer to use (MPEG-4 can use both)
497497 int16_t *block/*align 16*/, int n, int qscale);
498− void (*dct_unquantize_inter)(struct MpegEncContext *s, // unquantizer to use (mpeg4 can use both)
498+ void (*dct_unquantize_inter)(struct MpegEncContext *s, // unquantizer to use (MPEG-4 can use both)
499499 int16_t *block/*align 16*/, int n, int qscale);
500500 int (*dct_quantize)(struct MpegEncContext *s, int16_t *block/*align 16*/, int n, int qscale, int *overflow);
501501 int (*fast_dct_quantize)(struct MpegEncContext *s, int16_t *block/*align 16*/, int n, int qscale, int *overflow);
@@ -506,7 +506,7 @@ typedef struct MpegEncContext { · 4 unmodified lines
506506
507507 /**
508508 * ratecontrol qmin qmax limiting method
509− * 0-> clipping, 1-> use a nice continuous function to limit qscale wthin qmin/qmax.
509+ * 0-> clipping, 1-> use a nice continuous function to limit qscale within qmin/qmax.
510510 */
511511 float rc_qsquish;
512512 float rc_qmod_amp;
libavcodec/mpegvideo_enc.c+19−18
@@ -439,7 +439,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 438 unmodified lines
439439 s->codec_id != AV_CODEC_ID_MPEG4 &&
440440 s->codec_id != AV_CODEC_ID_MPEG1VIDEO &&
441441 s->codec_id != AV_CODEC_ID_MPEG2VIDEO) {
442− av_log(avctx, AV_LOG_ERROR, "b frames not supported by codec\n");
442+ av_log(avctx, AV_LOG_ERROR, "B-frames not supported by codec\n");
443443 return -1;
444444 }
445445
@@ -508,7 +508,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 62 unmodified lines
508508 }
509509 if (s->max_b_frames != 0) {
510510 av_log(avctx, AV_LOG_ERROR,
511− "b frames cannot be used with low delay\n");
511+ "B-frames cannot be used with low delay\n");
512512 return -1;
513513 }
514514 }
@@ -850,7 +850,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 335 unmodified lines
850850 s->intra_matrix[j] =
851851 s->inter_matrix[j] = ff_mpeg1_default_non_intra_matrix[i];
852852 } else {
853− /* mpeg1/2 */
853+ /* MPEG-1/2 */
854854 s->intra_matrix[j] = ff_mpeg1_default_intra_matrix[i];
855855 s->inter_matrix[j] = ff_mpeg1_default_non_intra_matrix[i];
856856 }
@@ -1158,7 +1158,7 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg) · 301 unmodified lines
11581158 return ret;
11591159
11601160 pic->f->display_picture_number = display_picture_number;
1161− pic->f->pts = pts; // we set this here to avoid modifiying pic_arg
1161+ pic->f->pts = pts; // we set this here to avoid modifying pic_arg
11621162 } else {
11631163 /* Flushing: When we have not received enough input frames,
11641164 * ensure s->input_picture[0] contains the first picture */
@@ -1370,7 +1370,7 @@ static int select_input_picture(MpegEncContext *s) · 205 unmodified lines
13701370 if (s->frame_skip_threshold || s->frame_skip_factor) {
13711371 if (s->picture_in_gop_number < s->gop_size &&
13721372 skip_check(s, s->input_picture[0], s->next_picture_ptr)) {
1373− // FIXME check that te gop check above is +-1 correct
1373+ // FIXME check that the gop check above is +-1 correct
13741374 av_frame_unref(s->input_picture[0]->f);
13751375
13761376 emms_c();
@@ -1438,7 +1438,7 @@ static int select_input_picture(MpegEncContext *s) · 61 unmodified lines
14381438 if (s->input_picture[b_frames]->f->pict_type == AV_PICTURE_TYPE_B &&
14391439 b_frames == s->max_b_frames) {
14401440 av_log(s->avctx, AV_LOG_ERROR,
1441− "warning, too many b frames in a row\n");
1441+ "warning, too many B-frames in a row\n");
14421442 }
14431443
14441444 if (s->picture_in_gop_number + b_frames >= s->gop_size) {
@@ -1482,7 +1482,7 @@ no_output_pic: · 37 unmodified lines
14821482 return ret;
14831483
14841484 if (s->reordered_input_picture[0]->shared || s->avctx->rc_buffer_size) {
1485− // input is a shared pix, so we can't modifiy it -> alloc a new
1485+ // input is a shared pix, so we can't modify it -> allocate a new
14861486 // one & ensure that the shared one is reuseable
14871487
14881488 Picture *pic;
@@ -1827,7 +1827,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 338 unmodified lines
18271827 s->frame_bits = put_bits_count(&s->pb);
18281828 }
18291829
1830− /* update mpeg1/2 vbv_delay for CBR */
1830+ /* update MPEG-1/2 vbv_delay for CBR */
18311831 if (s->avctx->rc_max_rate &&
18321832 s->avctx->rc_min_rate == s->avctx->rc_max_rate &&
18331833 s->out_format == FMT_MPEG1 &&
@@ -2396,7 +2396,7 @@ static inline void copy_context_before_encode(MpegEncContext *d, MpegEncContext · 562 unmodified lines
23962396
23972397 memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int)); //FIXME is memcpy faster than a loop?
23982398
2399− /* mpeg1 */
2399+ /* MPEG-1 */
24002400 d->mb_skip_run= s->mb_skip_run;
24012401 for(i=0; i<3; i++)
24022402 d->last_dc[i] = s->last_dc[i];
@@ -2425,7 +2425,7 @@ static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext * · 22 unmodified lines
24252425 memcpy(d->mv, s->mv, 2*4*2*sizeof(int));
24262426 memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int)); //FIXME is memcpy faster than a loop?
24272427
2428− /* mpeg1 */
2428+ /* MPEG-1 */
24292429 d->mb_skip_run= s->mb_skip_run;
24302430 for(i=0; i<3; i++)
24312431 d->last_dc[i] = s->last_dc[i];
@@ -3264,7 +3264,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 832 unmodified lines
32643264 ff_mpv_decode_mb(s, s->block);
32653265 }
32663266
3267− /* clean the MV table in IPS frames for direct mode in B frames */
3267+ /* clean the MV table in IPS frames for direct mode in B-frames */
32683268 if(s->mb_intra /* && I,P,S_TYPE */){
32693269 s->p_mv_table[xy][0]=0;
32703270 s->p_mv_table[xy][1]=0;
@@ -3420,7 +3420,7 @@ static int encode_picture(MpegEncContext *s, int picture_number) · 149 unmodified lines
34203420 s->me.mb_var_sum_temp =
34213421 s->me.mc_mb_var_sum_temp = 0;
34223422
3423− /* we need to initialize some time vars before we can encode b-frames */
3423+ /* we need to initialize some time vars before we can encode B-frames */
34243424 // RAL: Condition added for MPEG1VIDEO
34253425 if (s->codec_id == AV_CODEC_ID_MPEG1VIDEO || s->codec_id == AV_CODEC_ID_MPEG2VIDEO || (s->h263_pred && !s->msmpeg4_version))
34263426 set_frame_distances(s);
@@ -3795,7 +3795,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 368 unmodified lines
37953795
37963796 if(s->out_format == FMT_H263){
37973797 unquant_coeff= alevel*qmul + qadd;
3798− }else{ //MPEG1
3798+ } else { // MPEG-1
37993799 j = s->idsp.idct_permutation[scantable[i]]; // FIXME: optimize
38003800 if(s->mb_intra){
38013801 unquant_coeff = (int)( alevel * qscale * s->intra_matrix[j]) >> 3;
@@ -3865,7 +3865,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 63 unmodified lines
38653865
38663866 score_tab[i+1]= best_score;
38673867
3868− //Note: there is a vlc code in mpeg4 which is 1 bit shorter then another one with a shorter run and the same level
3868+ // Note: there is a vlc code in MPEG-4 which is 1 bit shorter then another one with a shorter run and the same level
38693869 if(last_non_zero <= 27){
38703870 for(; survivor_count; survivor_count--){
38713871 if(score_tab[ survivor[survivor_count-1] ] <= best_score)
@@ -3885,7 +3885,8 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 13 unmodified lines
38853885 last_score= 256*256*256*120;
38863886 for(i= survivor[0]; i<=last_non_zero + 1; i++){
38873887 int score= score_tab[i];
3888− if(i) score += lambda*2; //FIXME exacter?
3888+ if (i)
3889+ score += lambda * 2; // FIXME more exact?
38893890
38903891 if(score < last_score){
38913892 last_score= score;
@@ -3916,7 +3917,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 24 unmodified lines
39163917
39173918 if(s->out_format == FMT_H263){
39183919 unquant_coeff= (alevel*qmul + qadd)>>3;
3919− }else{ //MPEG1
3920+ } else { // MPEG-1
39203921 unquant_coeff = ((( alevel << 1) + 1) * qscale * ((int) s->inter_matrix[0])) >> 4;
39213922 unquant_coeff = (unquant_coeff - 1) | 1;
39223923 }
@@ -4039,7 +4040,7 @@ static int messed_sign=0; · 116 unmodified lines
40394040 #endif
40404041 dc += (1<<(RECON_SHIFT-1));
40414042 for(i=0; i<64; i++){
4042− rem[i]= dc - (orig[i]<<RECON_SHIFT); //FIXME use orig dirrectly instead of copying to rem[]
4043+ rem[i] = dc - (orig[i] << RECON_SHIFT); // FIXME use orig directly instead of copying to rem[]
40434044 }
40444045 #ifdef REFINE_STATS
40454046 STOP_TIMER("memset rem[]")}
@@ -4350,7 +4351,7 @@ STOP_TIMER("iterative search") · 304 unmodified lines
43504351 }
43514352
43524353 /**
4353− * Permute an 8x8 block according to permuatation.
4354+ * Permute an 8x8 block according to permutation.
43544355 * @param block the block which will be permuted according to
43554356 * the given permutation vector
43564357 * @param permutation the permutation vector
libavcodec/mpegvideo_motion.c+1−1
@@ -582,7 +582,7 @@ static inline void qpel_motion(MpegEncContext *s, · 581 unmodified lines
582582 }
583583
584584 /**
585− * h263 chroma 4mv motion compensation.
585+ * H.263 chroma 4mv motion compensation.
586586 */
587587 static void chroma_4mv_motion(MpegEncContext *s,
588588 uint8_t *dest_cb, uint8_t *dest_cr,
libavcodec/mpegvideo_parser.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1 / MPEG2 video parser
2+ * MPEG-1 / MPEG-2 video parser
33 * Copyright (c) 2000,2001 Fabrice Bellard
44 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
55 *
libavcodec/mqc.h+2−2
@@ -50,7 +50,7 @@ typedef struct MqcState { · 49 unmodified lines
5050 /**
5151 * Initialize MQ-decoder.
5252 * @param mqc MQ decoder state
53− * @param bp byte poiter
53+ * @param bp byte pointer
5454 */
5555 void ff_mqc_initdec(MqcState *mqc, uint8_t *bp);
5656
@@ -58,7 +58,7 @@ void ff_mqc_initdec(MqcState *mqc, uint8_t *bp); · 1 unmodified line
5858 * MQ decoder.
5959 * @param mqc MQ decoder state
6060 * @param cxstate Context
61− * @return Decision (0 ot 1)
61+ * @return Decision (0 to 1)
6262 */
6363 int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate);
6464
libavcodec/msmpeg4.c+5−5
@@ -39,14 +39,14 @@ · 38 unmodified lines
3939 #include "vc1data.h"
4040
4141 /*
42− * You can also call this codec : MPEG4 with a twist !
42+ * You can also call this codec: MPEG-4 with a twist!
4343 *
4444 * TODO:
4545 * - (encoding) select best mv table (two choices)
4646 * - (encoding) select best vlc/dc table
4747 */
4848
49−/* This table is practically identical to the one from h263
49+/* This table is practically identical to the one from H.263
5050 * except that it is inverted. */
5151 static av_cold void init_h263_dc_for_msmpeg4(void)
5252 {
@@ -67,7 +67,7 @@ static av_cold void init_h263_dc_for_msmpeg4(void) · 14 unmodified lines
6767 else
6868 l= level;
6969
70− /* luminance h263 */
70+ /* luminance H.263 */
7171 uni_code= ff_mpeg4_DCtab_lum[size][0];
7272 uni_len = ff_mpeg4_DCtab_lum[size][1];
7373 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility
@@ -83,7 +83,7 @@ static av_cold void init_h263_dc_for_msmpeg4(void) · 9 unmodified lines
8383 ff_v2_dc_lum_table[level + 256][0] = uni_code;
8484 ff_v2_dc_lum_table[level + 256][1] = uni_len;
8585
86− /* chrominance h263 */
86+ /* chrominance H.263 */
8787 uni_code= ff_mpeg4_DCtab_chrom[size][0];
8888 uni_len = ff_mpeg4_DCtab_chrom[size][1];
8989 uni_code ^= (1<<uni_len)-1; //M$ does not like compatibility
@@ -254,7 +254,7 @@ int ff_msmpeg4_pred_dc(MpegEncContext *s, int n, · 164 unmodified lines
254254 c = FASTDIV((c + (scale >> 1)), scale);
255255 }
256256 #endif
257− /* XXX: WARNING: they did not choose the same test as MPEG4. This
257+ /* XXX: WARNING: they did not choose the same test as MPEG-4. This
258258 is very important ! */
259259 if(s->msmpeg4_version>3){
260260 if(s->inter_intra_pred){
libavcodec/msmpeg4dec.c+2−2
@@ -69,7 +69,7 @@ static VLC v2_mb_type_vlc; · 68 unmodified lines
6969 static VLC v2_mv_vlc;
7070 VLC ff_inter_intra_vlc;
7171
72−/* This is identical to h263 except that its range is multiplied by 2. */
72+/* This is identical to H.263 except that its range is multiplied by 2. */
7373 static int msmpeg4v2_decode_motion(MpegEncContext * s, int pred, int f_code)
7474 {
7575 int code, val, sign, shift;
@@ -565,7 +565,7 @@ int ff_msmpeg4_decode_ext_header(MpegEncContext * s, int buf_size) · 489 unmodified lines
565565 }
566566 else
567567 {
568− av_log(s->avctx, AV_LOG_ERROR, "I frame too long, ignoring ext header\n");
568+ av_log(s->avctx, AV_LOG_ERROR, "I-frame too long, ignoring ext header\n");
569569 }
570570
571571 return 0;
libavcodec/msmpeg4enc.c+4−5
@@ -236,8 +236,8 @@ void ff_msmpeg4_encode_picture_header(MpegEncContext * s, int picture_number) · 235 unmodified lines
236236 }
237237
238238 s->dc_table_index = 1;
239− s->mv_table_index = 1; /* only if P frame */
240− s->use_skip_mb_code = 1; /* only if P frame */
239+ s->mv_table_index = 1; /* only if P-frame */
240+ s->use_skip_mb_code = 1; /* only if P-frame */
241241 s->per_mb_rl_table = 0;
242242 if(s->msmpeg4_version==4)
243243 s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE && s->pict_type==AV_PICTURE_TYPE_P);
@@ -577,9 +577,8 @@ static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr · 333 unmodified lines
577577 }
578578 }
579579
580−/* Encoding of a block. Very similar to MPEG4 except for a different
581− escape coding (same as H263) and more vlc tables.
582− */
580+/* Encoding of a block; very similar to MPEG-4 except for a different
581+ * escape coding (same as H.263) and more VLC tables. */
583582 void ff_msmpeg4_encode_block(MpegEncContext * s, int16_t * block, int n)
584583 {
585584 int level, run, last, i, j, last_index;
libavcodec/msrle.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Microsoft RLE video decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/msvideo1.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Microsoft Video-1 Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/nuv.c+2−2
@@ -174,7 +174,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, · 173 unmodified lines
174174 // codec data (rtjpeg quant tables)
175175 if (buf[0] == 'D' && buf[1] == 'R') {
176176 int ret;
177− // skip rest of the frameheader.
177+ // Skip the rest of the frame header.
178178 buf = &buf[12];
179179 buf_size -= 12;
180180 ret = get_quant(avctx, c, buf, buf_size);
@@ -201,7 +201,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, · 20 unmodified lines
201201 keyframe = 1;
202202 break;
203203 }
204− // skip rest of the frameheader.
204+ // Skip the rest of the frame header.
205205 buf = &buf[12];
206206 buf_size -= 12;
207207 if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) {
libavcodec/nvenc.c+4−4
@@ -295,7 +295,7 @@ static int nvenc_check_capabilities(AVCodecContext *avctx) · 294 unmodified lines
295295
296296 ret = nvenc_check_cap(avctx, NV_ENC_CAPS_NUM_MAX_BFRAMES);
297297 if (ret < avctx->max_b_frames) {
298− av_log(avctx, AV_LOG_VERBOSE, "Max b-frames %d exceed %d\n",
298+ av_log(avctx, AV_LOG_VERBOSE, "Max B-frames %d exceed %d\n",
299299 avctx->max_b_frames, ret);
300300
301301 return AVERROR(ENOSYS);
@@ -715,8 +715,8 @@ static int nvenc_setup_encoder(AVCodecContext *avctx) · 413 unmodified lines
715715 if (avctx->max_b_frames > 0) {
716716 /* 0 is intra-only,
717717 * 1 is I/P only,
718− * 2 is one B Frame,
719− * 3 two B frames, and so on. */
718+ * 2 is one B-Frame,
719+ * 3 two B-frames, and so on. */
720720 ctx->config.frameIntervalP = avctx->max_b_frames + 1;
721721 } else if (avctx->max_b_frames == 0) {
722722 ctx->config.frameIntervalP = 1;
@@ -804,7 +804,7 @@ static int nvenc_alloc_surface(AVCodecContext *avctx, int idx) · 81 unmodified lines
804804
805805 out_buffer.version = NV_ENC_CREATE_BITSTREAM_BUFFER_VER;
806806 /* 1MB is large enough to hold most output frames.
807− * NVENC increases this automaticaly if it's not enough. */
807+ * NVENC increases this automatically if it is not enough. */
808808 out_buffer.size = BITSTREAM_BUFFER_SIZE;
809809
810810 out_buffer.memoryHeap = NV_ENC_MEMORY_HEAP_SYSMEM_UNCACHED;
libavcodec/nvenc.h+1−1
@@ -129,7 +129,7 @@ typedef struct NVENCContext { · 128 unmodified lines
129129 enum AVPixelFormat data_pix_fmt;
130130
131131 /* timestamps of the first two frames, for computing the first dts
132− * when b-frames are present */
132+ * when B-frames are present */
133133 int64_t initial_pts[2];
134134 int first_packet_output;
135135
libavcodec/nvenc_h264.c+2−2
@@ -92,7 +92,7 @@ static const AVCodecDefault defaults[] = { · 91 unmodified lines
9292
9393 AVCodec ff_h264_nvenc_encoder = {
9494 .name = "h264_nvenc",
95− .long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H264 encoder"),
95+ .long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H.264 encoder"),
9696 .type = AVMEDIA_TYPE_VIDEO,
9797 .id = AV_CODEC_ID_H264,
9898 .init = ff_nvenc_encode_init,
@@ -123,7 +123,7 @@ static const AVClass nvenc_h264_old_class = { · 24 unmodified lines
123123
124124 AVCodec ff_nvenc_h264_encoder = {
125125 .name = "nvenc_h264",
126− .long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H264 encoder"),
126+ .long_name = NULL_IF_CONFIG_SMALL("NVIDIA NVENC H.264 encoder"),
127127 .type = AVMEDIA_TYPE_VIDEO,
128128 .id = AV_CODEC_ID_H264,
129129 .init = nvenc_old_init,
libavcodec/omx.c+4−4
@@ -690,7 +690,7 @@ static av_cold int omx_encode_init(AVCodecContext *avctx) · 689 unmodified lines
690690 goto fail;
691691 }
692692 if (avctx->codec->id == AV_CODEC_ID_H264) {
693− // For H264, the extradata can be returned in two separate buffers
693+ // For H.264, the extradata can be returned in two separate buffers
694694 // (the videocore encoder on raspberry pi does this);
695695 // therefore check that we have got both SPS and PPS before continuing.
696696 int nals[32] = { 0 };
@@ -847,7 +847,7 @@ static int omx_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 150 unmodified lines
847847 if (buffer->nFlags & OMX_BUFFERFLAG_ENDOFFRAME) {
848848 ret = pkt->size;
849849 pkt->pts = av_rescale_q(from_omx_ticks(buffer->nTimeStamp), AV_TIME_BASE_Q, avctx->time_base);
850− // We don't currently enable b-frames for the encoders, so set
850+ // We don't currently enable B-frames for the encoders, so set
851851 // pkt->dts = pkt->pts. (The calling code behaves worse if the encoder
852852 // doesn't set the dts).
853853 pkt->dts = pkt->pts;
@@ -897,7 +897,7 @@ static const AVClass omx_mpeg4enc_class = { · 43 unmodified lines
897897 };
898898 AVCodec ff_mpeg4_omx_encoder = {
899899 .name = "mpeg4_omx",
900− .long_name = NULL_IF_CONFIG_SMALL("OpenMAX IL MPEG4 video encoder"),
900+ .long_name = NULL_IF_CONFIG_SMALL("OpenMAX IL MPEG-4 video encoder"),
901901 .type = AVMEDIA_TYPE_VIDEO,
902902 .id = AV_CODEC_ID_MPEG4,
903903 .priv_data_size = sizeof(OMXCodecContext),
@@ -918,7 +918,7 @@ static const AVClass omx_h264enc_class = { · 14 unmodified lines
918918 };
919919 AVCodec ff_h264_omx_encoder = {
920920 .name = "h264_omx",
921− .long_name = NULL_IF_CONFIG_SMALL("OpenMAX IL H264 video encoder"),
921+ .long_name = NULL_IF_CONFIG_SMALL("OpenMAX IL H.264 video encoder"),
922922 .type = AVMEDIA_TYPE_VIDEO,
923923 .id = AV_CODEC_ID_H264,
924924 .priv_data_size = sizeof(OMXCodecContext),
libavcodec/options_table.h+1−1
@@ -113,7 +113,7 @@ static const AVOption avcodec_options[] = { · 112 unmodified lines
113113 {"qmin", "minimum video quantizer scale (VBR)", OFFSET(qmin), AV_OPT_TYPE_INT, {.i64 = 2 }, -1, 69, V|E},
114114 {"qmax", "maximum video quantizer scale (VBR)", OFFSET(qmax), AV_OPT_TYPE_INT, {.i64 = 31 }, -1, 69, V|E},
115115 {"qdiff", "maximum difference between the quantizer scales (VBR)", OFFSET(max_qdiff), AV_OPT_TYPE_INT, {.i64 = 3 }, INT_MIN, INT_MAX, V|E},
116−{"bf", "use 'frames' B frames", OFFSET(max_b_frames), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, -1, INT_MAX, V|E},
116+{"bf", "use 'frames' B-frames", OFFSET(max_b_frames), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, -1, INT_MAX, V|E},
117117 {"b_qfactor", "QP factor between P- and B-frames", OFFSET(b_quant_factor), AV_OPT_TYPE_FLOAT, {.dbl = 1.25 }, -FLT_MAX, FLT_MAX, V|E},
118118 #if FF_API_RC_STRATEGY
119119 {"rc_strategy", "ratecontrol method", OFFSET(rc_strategy), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, V|E},
libavcodec/opus.c+2−2
@@ -264,7 +264,7 @@ int ff_opus_parse_packet(OpusPacket *pkt, const uint8_t *buf, int buf_size, · 263 unmodified lines
264264 } else {
265265 pkt->mode = OPUS_MODE_CELT;
266266 pkt->bandwidth = (pkt->config - 16) >> 2;
267− /* skip mediumband */
267+ /* skip medium band */
268268 if (pkt->bandwidth)
269269 pkt->bandwidth++;
270270 }
@@ -396,7 +396,7 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx, · 125 unmodified lines
396396 return AVERROR_INVALIDDATA;
397397 }
398398
399− /* check that we din't see this index yet */
399+ /* check that we did not see this index yet */
400400 map->copy = 0;
401401 for (j = 0; j < i; j++)
402402 if (channel_map[channel_reorder(channels, j)] == idx) {
libavcodec/pcm-dvd.c+2−2
@@ -32,7 +32,7 @@ typedef struct PCMDVDContext { · 31 unmodified lines
3232 uint32_t last_header; // Cached header to see if parsing is needed
3333 int block_size; // Size of a block of samples in bytes
3434 int samples_per_block; // Number of samples per channel per block
35− int groups_per_block; // Number of 20/24bit sample groups per block
35+ int groups_per_block; // Number of 20/24-bit sample groups per block
3636 uint8_t *extra_samples; // Pointer to leftover samples from a frame
3737 int extra_sample_count; // Number of leftover samples in the buffer
3838 } PCMDVDContext;
@@ -102,7 +102,7 @@ static int pcm_dvd_parse_header(AVCodecContext *avctx, const uint8_t *header) · 63 unmodified lines
102102 avctx->sample_rate *
103103 avctx->bits_per_coded_sample;
104104
105− /* 4 samples form a group in 20/24bit PCM on DVD Video.
105+ /* 4 samples form a group in 20/24-bit PCM on DVD Video.
106106 * A block is formed by the number of groups that are
107107 * needed to complete a set of samples for each channel. */
108108 if (avctx->bits_per_coded_sample == 16) {
libavcodec/pngdec.c+1−1
@@ -639,7 +639,7 @@ skip_tag: · 638 unmodified lines
639639 }
640640 }
641641 exit_loop:
642− /* handle p-frames only if a predecessor frame is available */
642+ /* handle P-frames only if a predecessor frame is available */
643643 if (s->prev->data[0]) {
644644 if (!(avpkt->flags & AV_PKT_FLAG_KEY)) {
645645 int i, j;
libavcodec/pthread_internal.h+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 #include "avcodec.h"
2323
24−/* H264 slice threading seems to be buggy with more than 16 threads,
24+/* H.264 slice threading seems to be buggy with more than 16 threads,
2525 * limit the number of threads to 16 for automatic detection */
2626 #define MAX_AUTO_THREADS 16
2727
libavcodec/qcelpdec.c+1−1
@@ -600,7 +600,7 @@ static qcelp_packet_rate buf_size2bitrate(const int buf_size) · 599 unmodified lines
600600 *
601601 * @param avctx the AV codec context
602602 * @param buf_size length of the buffer
603− * @param buf the bufffer
603+ * @param buf the buffer
604604 *
605605 * @return the bitrate on success,
606606 * I_F_Q if the bitrate cannot be satisfactorily determined
libavcodec/qdm2.c+2−2
@@ -392,7 +392,7 @@ static int qdm2_get_se_vlc(VLC *vlc, GetBitContext *gb, int depth) · 391 unmodified lines
392392 /**
393393 * QDM2 checksum
394394 *
395− * @param data pointer to data to be checksum'ed
395+ * @param data pointer to data to be checksummed
396396 * @param length data length
397397 * @param value checksum value
398398 *
@@ -1947,7 +1947,7 @@ static int qdm2_decode(QDM2Context *q, const uint8_t *in, int16_t *out) · 1548 unmodified lines
19471947
19481948 q->sub_packet = (q->sub_packet + 1) % 16;
19491949
1950− /* clip and convert output float[] to 16bit signed samples */
1950+ /* clip and convert output float[] to 16-bit signed samples */
19511951 for (i = 0; i < frame_size; i++) {
19521952 int value = (int)q->output_buffer[i];
19531953
libavcodec/qsvdec_mpeg2.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Intel MediaSDK QSV based MPEG2 decoder
2+ * Intel MediaSDK QSV based MPEG-2 decoder
33 *
44 * copyright (c) 2015 Anton Khirnov
55 *
libavcodec/qtrle.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Quicktime Animation (RLE) Video Decoder
3− * Copyright (C) 2004 the ffmpeg project
3+ * Copyright (C) 2004 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/qtrleenc.c+2−2
@@ -130,7 +130,7 @@ static void qtrle_encode_line(QtrleEncContext *s, const AVFrame *p, int line, ui · 129 unmodified lines
130130
131131 /* We will use it to compute the best bulk copy sequence */
132132 unsigned int bulkcount;
133− /* This will be the number of pixels equal to the preivous frame one's
133+ /* This will be the number of pixels equal to the previous frame one's
134134 * starting from the ith pixel */
135135 unsigned int skipcount;
136136 /* This will be the number of consecutive equal pixels in the current
@@ -214,7 +214,7 @@ static void qtrle_encode_line(QtrleEncContext *s, const AVFrame *p, int line, ui · 77 unmodified lines
214214 prev_line -= s->pixel_size;
215215 }
216216
217− /* Good ! Now we have the best sequence for this line, let's ouput it */
217+ /* Good! Now we have the best sequence for this line, let's output it. */
218218
219219 /* We do a special case for the first pixel so that we avoid testing it in
220220 * the whole loop */
libavcodec/ra144.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Real Audio 1.0 (14.4K)
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/ra144.h+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Real Audio 1.0 (14.4K)
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/ra144enc.c+3−3
@@ -128,7 +128,7 @@ static void orthogonalize(float *v, const float *u) · 127 unmodified lines
128128
129129 /**
130130 * Calculate match score and gain of an LPC-filtered vector with respect to
131− * input data, possibly othogonalizing it to up to 2 other vectors
131+ * input data, possibly orthogonalizing it to up to two other vectors.
132132 *
133133 * @param work array used to calculate the filtered vector
134134 * @param coefs coefficients of the LPC filter
@@ -229,8 +229,8 @@ static int adaptive_cb_search(const int16_t *adapt_cb, float *work, · 94 unmodified lines
229229
230230 /**
231231 * Find the best vector of a fixed codebook by applying an LPC filter to
232− * codebook entries, possibly othogonalizing them to up to 2 other vectors and
233− * matching the results with input data
232+ * codebook entries, possibly orthogonalizing them to up to two other vectors
233+ * and matching the results with input data.
234234 *
235235 * @param work array used to calculate the filtered vectors
236236 * @param coefs coefficients of the LPC filter
libavcodec/ra288.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * RealAudio 2.0 (28.8K)
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/ra288.h+1−1
@@ -1,6 +1,6 @@
11 /*
22 * RealAudio 2.0 (28.8K)
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/ratecontrol.c+5−5
@@ -175,8 +175,8 @@ FF_ENABLE_DEPRECATION_WARNINGS · 174 unmodified lines
175175 if (!rcc->entry)
176176 return AVERROR(ENOMEM);
177177
178− /* init all to skipped p frames
179− * (with b frames we might have a not encoded frame at the end FIXME) */
178+ /* init all to skipped P-frames
179+ * (with B-frames we might have a not encoded frame at the end FIXME) */
180180 for (i = 0; i < rcc->num_entries; i++) {
181181 RateControlEntry *rce = &rcc->entry[i];
182182
@@ -196,7 +196,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 13 unmodified lines
196196
197197 next = strchr(p, ';');
198198 if (next) {
199− (*next) = 0; // sscanf in unbelievably slow on looong strings // FIXME copy / do not write
199+ (*next) = 0; // sscanf is unbelievably slow on looong strings // FIXME copy / do not write
200200 next++;
201201 }
202202 e = sscanf(p, " in:%d ", &picture_number);
@@ -638,9 +638,9 @@ static void adaptive_quantization(MpegEncContext *s, double q) · 435 unmodified lines
638638 int mb_distance;
639639 float mb_factor = 0.0;
640640 if (spat_cplx < 4)
641− spat_cplx = 4; // FIXME finetune
641+ spat_cplx = 4; // FIXME fine-tune
642642 if (temp_cplx < 4)
643− temp_cplx = 4; // FIXME finetune
643+ temp_cplx = 4; // FIXME fine-tune
644644
645645 if ((s->mb_type[mb_xy] & CANDIDATE_MB_TYPE_INTRA)) { // FIXME hq mode
646646 cplx = spat_cplx;
libavcodec/ratecontrol.h+1−1
@@ -68,7 +68,7 @@ typedef struct RateControlContext{ · 67 unmodified lines
6868 double short_term_qsum; ///< sum of recent qscales
6969 double short_term_qcount; ///< count of recent qscales
7070 double pass1_rc_eq_output_sum;///< sum of the output of the rc equation, this is used for normalization
71− double pass1_wanted_bits; ///< bits which should have been outputed by the pass1 code (including complexity init)
71+ double pass1_wanted_bits; ///< bits which should have been output by the pass1 code (including complexity init)
7272 double last_qscale;
7373 double last_qscale_for[5]; ///< last qscale for a specific pict type, used for max_diff & ipb factor stuff
7474 int last_mc_mb_var_sum;
libavcodec/rectangle.h+1−1
@@ -64,7 +64,7 @@ static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, · 63 unmodified lines
6464 *(uint32_t*)(p + 2*stride)= v;
6565 *(uint32_t*)(p + 3*stride)= v;
6666 }else if(w==8){
67− //gcc can't optimize 64bit math on x86_32
67+ // gcc cannot optimize 64-bit math on x86_32
6868 #if HAVE_FAST_64BIT
6969 const uint64_t v= size==2 ? val*0x0001000100010001ULL : val*0x0100000001ULL;
7070 *(uint64_t*)(p + 0*stride)= v;
libavcodec/rl2.c+1−1
@@ -53,7 +53,7 @@ typedef struct Rl2Context { · 52 unmodified lines
5353 * @param s rl2 context
5454 * @param in input buffer
5555 * @param size input buffer size
56− * @param out ouput buffer
56+ * @param out output buffer
5757 * @param stride stride of the output buffer
5858 * @param video_base offset of the rle data inside the frame
5959 */
libavcodec/roqvideodec.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (C) 2003 the ffmpeg project
2+ * Copyright (C) 2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/roqvideoenc.c+1−1
@@ -1080,7 +1080,7 @@ static int roq_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 1079 unmodified lines
10801080 }
10811081 enc->out_buf = pkt->data;
10821082
1083− /* Check for I frame */
1083+ /* Check for I-frame */
10841084 if (enc->framesSinceKeyframe == avctx->gop_size)
10851085 enc->framesSinceKeyframe = 0;
10861086
libavcodec/rpza.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * Quicktime Video (RPZA) Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -92,7 +92,7 @@ static int rpza_decode_stream(RpzaContext *s) · 85 unmodified lines
9292 av_log(s->avctx, AV_LOG_ERROR, "First chunk byte is 0x%02x instead of 0xe1\n",
9393 bytestream2_peek_byte(&s->gb));
9494
95− /* Get chunk size, ingnoring first byte */
95+ /* Get chunk size, ignoring first byte */
9696 chunk_size = bytestream2_get_be32(&s->gb) & 0x00FFFFFF;
9797
9898 /* If length mismatch use size from MOV file and try to decode anyway */
libavcodec/rv10.c+2−2
@@ -265,7 +265,7 @@ static int rv10_decode_picture_header(MpegEncContext *s) · 264 unmodified lines
265265 ff_dlog(s->avctx, "pict_type=%d pb_frame=%d\n", s->pict_type, pb_frame);
266266
267267 if (pb_frame) {
268− avpriv_request_sample(s->avctx, "pb frame");
268+ avpriv_request_sample(s->avctx, "PB-frame");
269269 return AVERROR_PATCHWELCOME;
270270 }
271271
@@ -413,7 +413,7 @@ static int rv20_decode_picture_header(RVDecContext *rv) · 141 unmodified lines
413413 if (s->pp_time <= s->pb_time ||
414414 s->pp_time <= s->pp_time - s->pb_time || s->pp_time <= 0) {
415415 av_log(s->avctx, AV_LOG_DEBUG, "messed up order, possible "
416− "from seeking? skipping current b frame\n");
416+ "from seeking? skipping current B-frame\n");
417417 return FRAME_SKIPPED;
418418 }
419419 ff_mpeg4_init_direct_mv(s);
libavcodec/rv10enc.c+1−1
@@ -39,7 +39,7 @@ int ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number) · 38 unmodified lines
3939
4040 put_bits(&s->pb, 1, (s->pict_type == AV_PICTURE_TYPE_P));
4141
42− put_bits(&s->pb, 1, 0); /* not PB frame */
42+ put_bits(&s->pb, 1, 0); /* not PB-mframe */
4343
4444 put_bits(&s->pb, 5, s->qscale);
4545
libavcodec/rv30data.h+1−1
@@ -58,7 +58,7 @@ static const uint8_t rv30_itype_code[9*9*2] = { · 57 unmodified lines
5858 *
5959 * This is really a three-dimensional matrix with dimensions
6060 * [-1..9][-1..9][0..9]. The first and second coordinates are
61− * detemined by the top and left neighbors (-1 if unavailable).
61+ * determined by the top and left neighbors (-1 if unavailable).
6262 */
6363 static const uint8_t rv30_itype_from_context[900] = {
6464 0, 9, 9, 9, 9, 9, 9, 9, 9,
libavcodec/rv34.c+2−2
@@ -215,7 +215,7 @@ static int rv34_decode_cbp(GetBitContext *gb, RV34VLC *vlc, int table) · 214 unmodified lines
215215 }
216216
217217 /**
218− * Get one coefficient value from the bistream and store it.
218+ * Get one coefficient value from the bitstream and store it.
219219 */
220220 static inline void decode_coeff(int16_t *dst, int coef, int esc, GetBitContext *gb, VLC* vlc, int q)
221221 {
@@ -1464,7 +1464,7 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int · 1242 unmodified lines
14641464 return s->mb_y == s->mb_height;
14651465 }
14661466
1467−/** @} */ // recons group end
1467+/** @} */ // reconstruction group end
14681468
14691469 /**
14701470 * Initialize decoder.
libavcodec/rv34.h+2−2
@@ -101,12 +101,12 @@ typedef struct RV34DecContext{ · 100 unmodified lines
101101 int is16; ///< current block has additional 16x16 specific features or not
102102 int dmv[4][2]; ///< differential motion vectors for the current macroblock
103103
104− int rv30; ///< indicates which RV variasnt is currently decoded
104+ int rv30; ///< indicates which RV variant is currently decoded
105105 int rpr; ///< one field size in RV30 slice header
106106
107107 int cur_pts, last_pts, next_pts;
108108 int scaled_weight;
109− int weight1, weight2; ///< B frame distance fractions (0.14) used in motion compensation
109+ int weight1, weight2; ///< B-frame distance fractions (0.14) used in motion compensation
110110 int mv_weight1, mv_weight2;
111111
112112 uint16_t *cbp_luma; ///< CBP values for luma subblocks
libavcodec/screenpresso.c+1−1
@@ -47,7 +47,7 @@ · 46 unmodified lines
4747 typedef struct ScreenpressoContext {
4848 AVFrame *current;
4949
50− /* zlib interation */
50+ /* zlib interaction */
5151 uint8_t *inflated_buf;
5252 uLongf inflated_size;
5353 } ScreenpressoContext;
libavcodec/simple_idct_template.c+2−4
@@ -25,10 +25,8 @@ · 24 unmodified lines
2525 * simpleidct in C.
2626 */
2727
28−/*
29− based upon some outcommented c code from mpeg2dec (idct_mmx.c
30− written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>)
31− */
28+/* Based upon some commented-out C code from mpeg2dec (idct_mmx.c
29+ * written by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>). */
3230
3331 #include "simple_idct.h"
3432
libavcodec/smc.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Quicktime Graphics (SMC) Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/sp5x.h+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Sunplus JPEG tables
3− * Copyright (c) 2003 the ffmpeg project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/svq1.c+1−1
@@ -4,7 +4,7 @@ · 3 unmodified lines
44 * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
55 *
66 * Copyright (C) 2002 the xine project
7− * Copyright (C) 2002 the ffmpeg project
7+ * Copyright (C) 2002 The FFmpeg project
88 *
99 * SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
1010 *
libavcodec/svq1.h+1−1
@@ -4,7 +4,7 @@ · 3 unmodified lines
44 * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
55 *
66 * Copyright (C) 2002 the xine project
7− * Copyright (C) 2002 the ffmpeg project
7+ * Copyright (C) 2002 The FFmpeg project
88 *
99 * SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
1010 *
libavcodec/svq1_cb.h+1−1
@@ -4,7 +4,7 @@ · 3 unmodified lines
44 * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
55 *
66 * Copyright (C) 2002 the xine project
7− * Copyright (C) 2002 the ffmpeg project
7+ * Copyright (C) 2002 The FFmpeg project
88 *
99 * This file is part of Libav.
1010 *
libavcodec/svq1_vlc.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * copyright (C) 2003 the ffmpeg project
2+ * copyright (C) 2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/svq1dec.c+1−1
@@ -4,7 +4,7 @@ · 3 unmodified lines
44 * ported to libavcodec by Nick Kurshev <nickols_k@mail.ru>
55 *
66 * Copyright (C) 2002 the xine project
7− * Copyright (C) 2002 the ffmpeg project
7+ * Copyright (C) 2002 The FFmpeg project
88 *
99 * SVQ1 Encoder (c) 2004 Mike Melanson <melanson@pcisys.net>
1010 *
libavcodec/svq1enc.c+1−1
@@ -150,7 +150,7 @@ static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref, · 149 unmodified lines
150150 vector = codebook + stage * size * 16 + i * size;
151151 sqr = s->ssd_int8_vs_int16(vector, block[stage], size);
152152 diff = block_sum[stage] - sum;
153− score = sqr - (diff * (int64_t)diff >> (level + 3)); // FIXME: 64bit slooow
153+ score = sqr - (diff * (int64_t)diff >> (level + 3)); // FIXME: 64 bits slooow
154154 if (score < best_vector_score) {
155155 int mean = diff + (size >> 1) >> (level + 3);
156156 assert(mean > -300 && mean < 300);
libavcodec/svq3.c+1−1
@@ -135,7 +135,7 @@ typedef struct SVQ3Context { · 134 unmodified lines
135135 #define THIRDPEL_MODE 3
136136 #define PREDICT_MODE 4
137137
138−/* dual scan (from some older h264 draft)
138+/* dual scan (from some older H.264 draft)
139139 * o-->o-->o o
140140 * | /|
141141 * o o o / o
libavcodec/tdsc.c+2−2
@@ -56,7 +56,7 @@ typedef struct TDSCContext { · 55 unmodified lines
5656 AVFrame *jpgframe; // decoded JPEG tile
5757 uint8_t *tilebuffer; // buffer containing tile data
5858
59− /* zlib interation */
59+ /* zlib interaction */
6060 uint8_t *deflatebuffer;
6161 uLongf deflatelen;
6262
@@ -365,7 +365,7 @@ static int tdsc_decode_jpeg_tile(AVCodecContext *avctx, int tile_size, · 302 unmodified lines
365365 return 0;
366366 }
367367
368− /* Let's paint ont the buffer */
368+ /* Let's paint onto the buffer */
369369 tdsc_blit(ctx->refframe->data[0] + x * 3 + ctx->refframe->linesize[0] * y,
370370 ctx->refframe->linesize[0],
371371 ctx->jpgframe->data[0], ctx->jpgframe->linesize[0],
libavcodec/texturedsp.c+1−1
@@ -166,7 +166,7 @@ static inline void dxt3_block_internal(uint8_t *dst, ptrdiff_t stride, · 165 unmodified lines
166166 }
167167 }
168168
169−/** Convert a premultiplied alpha pixel to a straigth alpha pixel. */
169+/** Convert a premultiplied alpha pixel to a straight alpha pixel. */
170170 static av_always_inline void premult2straight(uint8_t *src)
171171 {
172172 int r = src[0];
libavcodec/texturedspenc.c+2−2
@@ -213,7 +213,7 @@ static unsigned int match_colors(const uint8_t *block, ptrdiff_t stride, · 212 unmodified lines
213213 * the same inside that subinterval.
214214 *
215215 * Relying on this 1d approximation isn't always optimal in terms of
216− * euclidean distance, but it's very close and a lot faster.
216+ * Euclidean distance, but it's very close and a lot faster.
217217 *
218218 * http://cbloomrants.blogspot.com/2008/12/12-08-08-dxtc-summary.html */
219219 c0_point = (stops[1] + stops[3]) >> 1;
@@ -309,7 +309,7 @@ static void optimize_colors(const uint8_t *block, ptrdiff_t stride, · 89 unmodified lines
309309 if (fabs(vfb) > magn)
310310 magn = fabs(vfb);
311311
312− /* if magnitudo is too small, default to luminance */
312+ /* if magnitude is too small, default to luminance */
313313 if (magn < 4.0f) {
314314 /* JPEG YCbCr luma coefs, scaled by 1000 */
315315 v_r = 299;
libavcodec/twinvq.h+1−1
@@ -109,7 +109,7 @@ typedef struct TwinVQFrameData { · 108 unmodified lines
109109 * bitrate/sample rate
110110 */
111111 typedef struct TwinVQModeTab {
112− struct TwinVQFrameMode fmode[3]; ///< frame type-dependant parameters
112+ struct TwinVQFrameMode fmode[3]; ///< frame type-dependent parameters
113113
114114 uint16_t size; ///< frame size in samples
115115 uint8_t n_lsp; ///< number of lsp coefficients
libavcodec/twinvqdec.c+1−1
@@ -149,7 +149,7 @@ static int very_broken_op(int a, int b) · 148 unmodified lines
149149 /**
150150 * Sum to data a periodic peak of a given period, width and shape.
151151 *
152− * @param period the period of the peak divised by 400.0
152+ * @param period the period of the peak divided by 400.0
153153 */
154154 static void add_peak(int period, int width, const float *shape,
155155 float ppc_gain, float *speech, int len)
libavcodec/utvideoenc.c+3−3
@@ -160,7 +160,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 159 unmodified lines
160160 return AVERROR(EINVAL);
161161 }
162162
163− /* extradata size is 4 * 32bit */
163+ /* extradata size is 4 * 32 bits */
164164 avctx->extradata_size = 16;
165165
166166 avctx->extradata = av_mallocz(avctx->extradata_size +
@@ -371,7 +371,7 @@ static int write_huff_codes(uint8_t *src, uint8_t *dst, int dst_size, · 204 unmodified lines
371371 src += width;
372372 }
373373
374− /* Pad output to a 32bit boundary */
374+ /* Pad output to a 32-bit boundary */
375375 count = put_bits_count(&pb) & 0x1F;
376376
377377 if (count)
@@ -611,7 +611,7 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 233 unmodified lines
611611 }
612612
613613 /*
614− * Write frame information (LE 32bit unsigned)
614+ * Write frame information (LE 32-bit unsigned)
615615 * into the output packet.
616616 * Contains the prediction method.
617617 */
libavcodec/vaapi_encode.c+2−2
@@ -636,7 +636,7 @@ static int vaapi_encode_get_next(AVCodecContext *avctx, · 635 unmodified lines
636636 start = end = pic;
637637
638638 if (pic->type != PICTURE_TYPE_IDR) {
639− // If that was not an IDR frame, add B frames display-before and
639+ // If that was not an IDR frame, add B-frames display-before and
640640 // encode-after it.
641641
642642 for (i = 0; i < ctx->b_per_p; i++) {
@@ -708,7 +708,7 @@ static int vaapi_encode_mangle_end(AVCodecContext *avctx) · 65 unmodified lines
708708
709709 if (last_pic->type == PICTURE_TYPE_B) {
710710 // Some fixing up is required. Change the type of this
711− // picture to P, then modify preceeding B references which
711+ // picture to P, then modify preceding B references which
712712 // point beyond it to point at it instead.
713713
714714 last_pic->type = PICTURE_TYPE_P;
libavcodec/vaapi_encode_h264.c+4−4
@@ -697,7 +697,7 @@ static int vaapi_encode_h264_init_slice_params(AVCodecContext *avctx, · 696 unmodified lines
697697
698698 av_assert0(pic->nb_refs <= 2);
699699 if (pic->nb_refs >= 1) {
700− // Backward reference for P or B frame.
700+ // Backward reference for P- or B-frame.
701701 av_assert0(pic->type == PICTURE_TYPE_P ||
702702 pic->type == PICTURE_TYPE_B);
703703
@@ -705,7 +705,7 @@ static int vaapi_encode_h264_init_slice_params(AVCodecContext *avctx, · 1 unmodified line
705705 vslice->RefPicList0[0] = vpic->ReferenceFrames[0];
706706 }
707707 if (pic->nb_refs >= 2) {
708− // Forward reference for B frame.
708+ // Forward reference for B-frame.
709709 av_assert0(pic->type == PICTURE_TYPE_B);
710710
711711 vslice->num_ref_idx_l1_active_minus1 = 0;
@@ -793,7 +793,7 @@ static av_cold int vaapi_encode_h264_init_fixed_qp(AVCodecContext *avctx) · 81 unmodified lines
793793 priv->fixed_qp_b = priv->fixed_qp_p;
794794
795795 av_log(avctx, AV_LOG_DEBUG, "Using fixed QP = "
796− "%d / %d / %d for IDR / P / B frames.\n",
796+ "%d / %d / %d for IDR- / P- / B-frames.\n",
797797 priv->fixed_qp_idr, priv->fixed_qp_p, priv->fixed_qp_b);
798798 return 0;
799799 }
@@ -930,7 +930,7 @@ static av_cold int vaapi_encode_h264_init(AVCodecContext *avctx) · 130 unmodified lines
930930 offsetof(VAAPIEncodeH264Options, x))
931931 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
932932 static const AVOption vaapi_encode_h264_options[] = {
933− { "qp", "Constant QP (for P frames; scaled by qfactor/qoffset for I/B)",
933+ { "qp", "Constant QP (for P-frames; scaled by qfactor/qoffset for I/B)",
934934 OFFSET(qp), AV_OPT_TYPE_INT, { .i64 = 20 }, 0, 52, FLAGS },
935935 { "quality", "Set encode quality (trades off against speed, higher is faster)",
936936 OFFSET(quality), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 2, FLAGS },
libavcodec/vaapi_encode_h265.c+4−4
@@ -1075,7 +1075,7 @@ static int vaapi_encode_h265_init_slice_params(AVCodecContext *avctx, · 1074 unmodified lines
10751075
10761076 av_assert0(pic->nb_refs <= 2);
10771077 if (pic->nb_refs >= 1) {
1078− // Backward reference for P or B frame.
1078+ // Backward reference for P- or B-frame.
10791079 av_assert0(pic->type == PICTURE_TYPE_P ||
10801080 pic->type == PICTURE_TYPE_B);
10811081
@@ -1083,7 +1083,7 @@ static int vaapi_encode_h265_init_slice_params(AVCodecContext *avctx, · 1 unmodified line
10831083 vslice->ref_pic_list0[0] = vpic->reference_frames[0];
10841084 }
10851085 if (pic->nb_refs >= 2) {
1086− // Forward reference for B frame.
1086+ // Forward reference for B-frame.
10871087 av_assert0(pic->type == PICTURE_TYPE_B);
10881088
10891089 vslice->num_ref_idx_l1_active_minus1 = 0;
@@ -1220,7 +1220,7 @@ static av_cold int vaapi_encode_h265_init_fixed_qp(AVCodecContext *avctx) · 130 unmodified lines
12201220 priv->fixed_qp_b = priv->fixed_qp_p;
12211221
12221222 av_log(avctx, AV_LOG_DEBUG, "Using fixed QP = "
1223− "%d / %d / %d for IDR / P / B frames.\n",
1223+ "%d / %d / %d for IDR- / P- / B-frames.\n",
12241224 priv->fixed_qp_idr, priv->fixed_qp_p, priv->fixed_qp_b);
12251225 return 0;
12261226 }
@@ -1321,7 +1321,7 @@ static av_cold int vaapi_encode_h265_init(AVCodecContext *avctx) · 94 unmodified lines
13211321 offsetof(VAAPIEncodeH265Options, x))
13221322 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM)
13231323 static const AVOption vaapi_encode_h265_options[] = {
1324− { "qp", "Constant QP (for P frames; scaled by qfactor/qoffset for I/B)",
1324+ { "qp", "Constant QP (for P-frames; scaled by qfactor/qoffset for I/B)",
13251325 OFFSET(qp), AV_OPT_TYPE_INT, { .i64 = 25 }, 0, 52, FLAGS },
13261326 { NULL },
13271327 };
libavcodec/vc1.c+3−3
@@ -401,7 +401,7 @@ int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitCo · 400 unmodified lines
401401 "Profile %i:\nfrmrtq_postproc=%i, bitrtq_postproc=%i\n"
402402 "LoopFilter=%i, MultiRes=%i, FastUVMC=%i, Extended MV=%i\n"
403403 "Rangered=%i, VSTransform=%i, Overlap=%i, SyncMarker=%i\n"
404− "DQuant=%i, Quantizer mode=%i, Max B frames=%i\n",
404+ "DQuant=%i, Quantizer mode=%i, Max B-frames=%i\n",
405405 v->profile, v->frmrtq_postproc, v->bitrtq_postproc,
406406 v->s.loop_filter, v->multires, v->fastuvmc, v->extended_mv,
407407 v->rangered, v->vstransform, v->overlap, v->resync_marker,
@@ -753,7 +753,7 @@ int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) · 345 unmodified lines
753753 av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: "
754754 "Imode: %i, Invert: %i\n", status>>1, status&1);
755755
756− /* Hopefully this is correct for P frames */
756+ /* Hopefully this is correct for P-frames */
757757 v->s.mv_table_index = get_bits(gb, 2); //but using ff_vc1_ tables
758758 v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)];
759759
@@ -1136,7 +1136,7 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) · 376 unmodified lines
11361136 av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: "
11371137 "Imode: %i, Invert: %i\n", status>>1, status&1);
11381138
1139− /* Hopefully this is correct for P frames */
1139+ /* Hopefully this is correct for P-frames */
11401140 v->s.mv_table_index = get_bits(gb, 2); //but using ff_vc1_ tables
11411141 v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)];
11421142 } else if (v->fcm == ILACE_FRAME) { // frame interlaced
libavcodec/vc1.h+16−16
@@ -73,7 +73,7 @@ enum DQDoubleEdge { · 72 unmodified lines
7373 };
7474 //@}
7575
76−/** MV modes for P frames */
76+/** MV modes for P-frames */
7777 //@{
7878 enum MVModes {
7979 MV_PMODE_1MV_HPEL_BILIN,
@@ -96,7 +96,7 @@ enum MBModesIntfr { · 16 unmodified lines
9696 };
9797 //@}
9898
99−/** @name MV types for B frames */
99+/** @name MV types for B-frames */
100100 //@{
101101 enum BMVTypes {
102102 BMV_TYPE_BACKWARD,
@@ -106,7 +106,7 @@ enum BMVTypes { · 3 unmodified lines
106106 };
107107 //@}
108108
109−/** @name Block types for P/B frames */
109+/** @name Block types for P/B-frames */
110110 //@{
111111 enum TransformTypes {
112112 TT_8X8,
@@ -179,18 +179,18 @@ typedef struct VC1Context{ · 66 unmodified lines
179179
180180 /** Advanced Profile */
181181 //@{
182− int level; ///< 3bits, for Advanced/Simple Profile, provided by TS layer
183− int chromaformat; ///< 2bits, 2=4:2:0, only defined
182+ int level; ///< 3 bits, for Advanced/Simple Profile, provided by TS layer
183+ int chromaformat; ///< 2 bits, 2=4:2:0, only defined
184184 int postprocflag; ///< Per-frame processing suggestion flag present
185185 int broadcast; ///< TFF/RFF present
186186 int interlace; ///< Progressive/interlaced (RPTFTM syntax element)
187187 int tfcntrflag; ///< TFCNTR present
188188 int panscanflag; ///< NUMPANSCANWIN, TOPLEFT{X,Y}, BOTRIGHT{X,Y} present
189189 int refdist_flag; ///< REFDIST syntax element present in II, IP, PI or PP field picture headers
190− int extended_dmv; ///< Additional extended dmv range at P/B frame-level
191− int color_prim; ///< 8bits, chroma coordinates of the color primaries
192− int transfer_char; ///< 8bits, Opto-electronic transfer characteristics
193− int matrix_coef; ///< 8bits, Color primaries->YCbCr transform matrix
190+ int extended_dmv; ///< Additional extended dmv range at P/B-frame-level
191+ int color_prim; ///< 8 bits, chroma coordinates of the color primaries
192+ int transfer_char; ///< 8 bits, Opto-electronic transfer characteristics
193+ int matrix_coef; ///< 8 bits, Color primaries->YCbCr transform matrix
194194 int hrd_param_flag; ///< Presence of Hypothetical Reference
195195 ///< Decoder parameters
196196 int psf; ///< Progressive Segmented Frame
@@ -200,22 +200,22 @@ typedef struct VC1Context{ · 3 unmodified lines
200200 * TODO: choose between ints, uint8_ts and monobit flags
201201 */
202202 //@{
203− int profile; ///< 2bits, Profile
204− int frmrtq_postproc; ///< 3bits,
205− int bitrtq_postproc; ///< 5bits, quantized framerate-based postprocessing strength
203+ int profile; ///< 2 bits, Profile
204+ int frmrtq_postproc; ///< 3 bits
205+ int bitrtq_postproc; ///< 5 bits, quantized framerate-based postprocessing strength
206206 int fastuvmc; ///< Rounding of qpel vector to hpel ? (not in Simple)
207207 int extended_mv; ///< Ext MV in P/B (not in Simple)
208− int dquant; ///< How qscale varies with MBs, 2bits (not in Simple)
208+ int dquant; ///< How qscale varies with MBs, 2 bits (not in Simple)
209209 int vstransform; ///< variable-size [48]x[48] transform type + info
210210 int overlap; ///< overlapped transforms in use
211− int quantizer_mode; ///< 2bits, quantizer mode used for sequence, see QUANT_*
211+ int quantizer_mode; ///< 2 bits, quantizer mode used for sequence, see QUANT_*
212212 int finterpflag; ///< INTERPFRM present
213213 //@}
214214
215215 /** Frame decoding info for all profiles */
216216 //@{
217− uint8_t mv_mode; ///< MV coding monde
218− uint8_t mv_mode2; ///< Secondary MV coding mode (B frames)
217+ uint8_t mv_mode; ///< MV coding mode
218+ uint8_t mv_mode2; ///< Secondary MV coding mode (B-frames)
219219 int k_x; ///< Number of bits for MVs (depends on MV range)
220220 int k_y; ///< Number of bits for MVs (depends on MV range)
221221 int range_x, range_y; ///< MV range
libavcodec/vc1_block.c+7−7
@@ -1602,7 +1602,7 @@ static int vc1_decode_p_mb_intfr(VC1Context *v) · 1601 unmodified lines
16021602 int idx_mbmode = 0, mvbp;
16031603 int stride_y, fieldtx;
16041604
1605− mquant = v->pq; /* Loosy initialization */
1605+ mquant = v->pq; /* Lossy initialization */
16061606
16071607 if (v->skip_is_raw)
16081608 skipped = get_bits1(gb);
@@ -1814,7 +1814,7 @@ static int vc1_decode_p_mb_intfi(VC1Context *v) · 205 unmodified lines
18141814 int block_cbp = 0, pat, block_tt = 0;
18151815 int idx_mbmode = 0;
18161816
1817− mquant = v->pq; /* Loosy initialization */
1817+ mquant = v->pq; /* Lossy initialization */
18181818
18191819 idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_IF_MBMODE_VLC_BITS, 2);
18201820 if (idx_mbmode <= 1) { // intra MB
@@ -2091,7 +2091,7 @@ static void vc1_decode_b_mb_intfi(VC1Context *v) · 270 unmodified lines
20912091 int bmvtype = BMV_TYPE_BACKWARD;
20922092 int idx_mbmode, interpmvp;
20932093
2094− mquant = v->pq; /* Loosy initialization */
2094+ mquant = v->pq; /* Lossy initialization */
20952095 s->mb_intra = 0;
20962096
20972097 idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_IF_MBMODE_VLC_BITS, 2);
@@ -2583,7 +2583,7 @@ static void vc1_decode_i_blocks(VC1Context *v) · 485 unmodified lines
25832583 uint8_t *coded_val;
25842584 int mb_pos;
25852585
2586− /* select codingmode used for VLC tables selection */
2586+ /* select coding mode used for VLC tables selection */
25872587 switch (v->y_ac_table_index) {
25882588 case 0:
25892589 v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA;
@@ -2731,7 +2731,7 @@ static void vc1_decode_i_blocks_adv(VC1Context *v) · 141 unmodified lines
27312731 int mqdiff;
27322732 GetBitContext *gb = &s->gb;
27332733
2734− /* select codingmode used for VLC tables selection */
2734+ /* select coding mode used for VLC tables selection */
27352735 switch (v->y_ac_table_index) {
27362736 case 0:
27372737 v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA;
@@ -2860,7 +2860,7 @@ static void vc1_decode_p_blocks(VC1Context *v) · 122 unmodified lines
28602860 MpegEncContext *s = &v->s;
28612861 int apply_loop_filter;
28622862
2863− /* select codingmode used for VLC tables selection */
2863+ /* select coding mode used for VLC tables selection */
28642864 switch (v->c_ac_table_index) {
28652865 case 0:
28662866 v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA;
@@ -2935,7 +2935,7 @@ static void vc1_decode_b_blocks(VC1Context *v) · 68 unmodified lines
29352935 {
29362936 MpegEncContext *s = &v->s;
29372937
2938− /* select codingmode used for VLC tables selection */
2938+ /* select coding mode used for VLC tables selection */
29392939 switch (v->c_ac_table_index) {
29402940 case 0:
29412941 v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA;
libavcodec/vc1_mc.c+2−2
@@ -54,7 +54,7 @@ void ff_vc1_mc_1mv(VC1Context *v, int dir) · 53 unmodified lines
5454 mx = s->mv[dir][0][0];
5555 my = s->mv[dir][0][1];
5656
57− // store motion vectors for further use in B frames
57+ // store motion vectors for further use in B-frames
5858 if (s->pict_type == AV_PICTURE_TYPE_P) {
5959 for (i = 0; i < 4; i++) {
6060 s->current_picture.motion_val[1][s->block_index[i] + v->blocks_off][0] = mx;
@@ -936,7 +936,7 @@ void ff_vc1_interp_mc(VC1Context *v) · 875 unmodified lines
936936
937937 if (s->avctx->flags & AV_CODEC_FLAG_GRAY)
938938 return;
939− /* Chroma MC always uses qpel blilinear */
939+ /* Chroma MC always uses qpel bilinear */
940940 uvmx = (uvmx & 3) << 1;
941941 uvmy = (uvmy & 3) << 1;
942942 if (!v->rnd) {
libavcodec/vc1_pred.c+1−1
@@ -470,7 +470,7 @@ void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, · 469 unmodified lines
470470 int A[2], B[2], C[2];
471471 int px = 0, py = 0;
472472 int a_valid = 0, b_valid = 0, c_valid = 0;
473− int field_a, field_b, field_c; // 0: same, 1: opposit
473+ int field_a, field_b, field_c; // 0: same, 1: opposite
474474 int total_valid, num_samefield, num_oppfield;
475475 int pos_c, pos_b, n_adj;
476476
libavcodec/vc1dec.c+1−1
@@ -409,7 +409,7 @@ av_cold void ff_vc1_init_transposed_scantables(VC1Context *v) · 408 unmodified lines
409409
410410 /** Initialize a VC1/WMV3 decoder
411411 * @todo TODO: Handle VC-1 IDUs (Transport level?)
412− * @todo TODO: Decypher remaining bits in extra_data
412+ * @todo TODO: Decipher remaining bits in extra_data
413413 */
414414 static av_cold int vc1_decode_init(AVCodecContext *avctx)
415415 {
libavcodec/vda_h264.c+2−2
@@ -158,7 +158,7 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx, · 157 unmodified lines
158158 CFMutableDictionaryRef io_surface_properties;
159159 CFNumberRef cv_pix_fmt;
160160
161− /* Each VCL NAL in the bistream sent to the decoder
161+ /* Each VCL NAL in the bitstream sent to the decoder
162162 * is preceded by a 4 bytes length header.
163163 * Change the avcC atom header if needed, to signal headers of 4 bytes. */
164164 if (extradata_size >= 4 && (extradata[4] & 0x03) != 0x03) {
@@ -384,7 +384,7 @@ int ff_vda_default_init(AVCodecContext *avctx) · 219 unmodified lines
384384
385385 // kCVPixelFormatType_420YpCbCr8Planar;
386386
387− /* Each VCL NAL in the bistream sent to the decoder
387+ /* Each VCL NAL in the bitstream sent to the decoder
388388 * is preceded by a 4 bytes length header.
389389 * Change the avcC atom header if needed, to signal headers of 4 bytes. */
390390 if (avctx->extradata_size >= 4 && (avctx->extradata[4] & 0x03) != 0x03) {
libavcodec/vdpau.h+1−1
@@ -138,7 +138,7 @@ typedef struct AVVDPAUContext { · 137 unmodified lines
138138 * display preemption).
139139 *
140140 * @note get_format() must return AV_PIX_FMT_VDPAU if this function completes
141− * succesfully.
141+ * successfully.
142142 *
143143 * @param avctx decoding context whose get_format() callback is invoked
144144 * @param device VDPAU device handle to use for hardware acceleration
libavcodec/vdpau_h264.c+2−2
@@ -239,8 +239,8 @@ static int vdpau_h264_init(AVCodecContext *avctx) · 238 unmodified lines
239239 break;
240240 #endif
241241 case FF_PROFILE_H264_HIGH_10:
242− /* XXX: High 10 can be treated as High so long as only 8-bits per
243− * formats are supported. */
242+ /* XXX: High 10 can be treated as High so long as only 8 bits per
243+ * format are supported. */
244244 profile = VDP_DECODER_PROFILE_H264_HIGH;
245245 break;
246246 #ifdef VDP_DECODER_PROFILE_H264_HIGH_444_PREDICTIVE
libavcodec/vp3.c+7−7
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (C) 2003-2004 the ffmpeg project
2+ * Copyright (C) 2003-2004 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
@@ -932,14 +932,14 @@ static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb, · 926 unmodified lines
932932 int num_coeffs = s->num_coded_frags[plane][coeff_index];
933933 int16_t *dct_tokens = s->dct_tokens[plane][coeff_index];
934934
935− /* local references to structure members to avoid repeated deferences */
935+ /* local references to structure members to avoid repeated dereferences */
936936 int *coded_fragment_list = s->coded_fragment_list[plane];
937937 Vp3Fragment *all_fragments = s->all_fragments;
938938 VLC_TYPE(*vlc_table)[2] = table->table;
939939
940940 if (num_coeffs < 0)
941941 av_log(s->avctx, AV_LOG_ERROR,
942− "Invalid number of coefficents at level %d\n", coeff_index);
942+ "Invalid number of coefficients at level %d\n", coeff_index);
943943
944944 if (eob_run > num_coeffs) {
945945 coeff_i =
@@ -1021,7 +1021,7 @@ static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb, · 75 unmodified lines
10211021 if (blocks_ended > s->num_coded_frags[plane][coeff_index])
10221022 av_log(s->avctx, AV_LOG_ERROR, "More blocks ended than coded!\n");
10231023
1024− // decrement the number of blocks that have higher coeffecients for each
1024+ // decrement the number of blocks that have higher coefficients for each
10251025 // EOB run at this level
10261026 if (blocks_ended)
10271027 for (i = coeff_index + 1; i < 64; i++)
@@ -1110,7 +1110,7 @@ static int unpack_dct_coeffs(Vp3DecodeContext *s, GetBitContext *gb) · 82 unmodified lines
11101110 c_tables[i] = &s->ac_vlc_4[ac_c_table];
11111111 }
11121112
1113− /* decode all AC coefficents */
1113+ /* decode all AC coefficients */
11141114 for (i = 1; i <= 63; i++) {
11151115 residual_eob_run = unpack_vlcs(s, gb, y_tables[i], i,
11161116 0, residual_eob_run);
@@ -1308,7 +1308,7 @@ static void apply_loop_filter(Vp3DecodeContext *s, int plane, · 191 unmodified lines
13081308 for (x = 0; x < width; x++) {
13091309 /* This code basically just deblocks on the edges of coded blocks.
13101310 * However, it has to be much more complicated because of the
1311− * braindamaged deblock ordering used in VP3/Theora. Order matters
1311+ * brain damaged deblock ordering used in VP3/Theora. Order matters
13121312 * because some pixels get filtered twice. */
13131313 if (s->all_fragments[fragment].coding_method != MODE_COPY) {
13141314 /* do not perform left edge filter for left columns frags */
@@ -1581,7 +1581,7 @@ static void render_slice(Vp3DecodeContext *s, int slice) · 266 unmodified lines
15811581 /* Note, it is possible to implement all MC cases
15821582 * with put_no_rnd_pixels_l2 which would look more
15831583 * like the VP3 source but this would be slower as
1584− * put_no_rnd_pixels_tab is better optimzed */
1584+ * put_no_rnd_pixels_tab is better optimized */
15851585 if (motion_halfpel_index != 3) {
15861586 s->hdsp.put_no_rnd_pixels_tab[1][motion_halfpel_index](
15871587 output_plane + first_pixel,
libavcodec/vp3data.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * copyright (C) 2003 the ffmpeg project
2+ * copyright (C) 2003 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/vp3dsp.c+1−1
@@ -1,5 +1,5 @@
11 /*
2− * Copyright (C) 2004 the ffmpeg project
2+ * Copyright (C) 2004 The FFmpeg project
33 *
44 * This file is part of Libav.
55 *
libavcodec/vp8.h+2−2
@@ -223,7 +223,7 @@ typedef struct VP8Context { · 222 unmodified lines
223223
224224 /**
225225 * These are all of the updatable probabilities for binary decisions.
226− * They are only implictly reset on keyframes, making it quite likely
226+ * They are only implicitly reset on keyframes, making it quite likely
227227 * for an interframe to desync if a prior frame's header was corrupt
228228 * or missing outright!
229229 */
@@ -271,7 +271,7 @@ typedef struct VP8Context { · 41 unmodified lines
271271 /**
272272 * This describes the macroblock memory layout.
273273 * 0 -> Only width+height*2+1 macroblocks allocated (frame/single thread).
274− * 1 -> Macroblocks for entire frame alloced (sliced thread).
274+ * 1 -> Macroblocks for entire frame allocated (sliced thread).
275275 */
276276 int mb_layout;
277277
libavcodec/vp9.h+1−1
@@ -141,7 +141,7 @@ typedef struct VP9DSPContext { · 140 unmodified lines
141141 */
142142 // FIXME(rbultje) maybe replace left/top pointers with HAVE_TOP/
143143 // HAVE_LEFT/HAVE_TOPRIGHT flags instead, and then handle it in-place?
144− // also needs to fit in with what h264/vp8/etc do
144+ // also needs to fit in with what H.264/VP8/etc do
145145 void (*intra_pred[N_TXFM_SIZES][N_INTRA_PRED_MODES])(uint8_t *dst,
146146 ptrdiff_t stride,
147147 const uint8_t *left,
libavcodec/vqavideo.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Westwood Studios VQA Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/wma.c+1−1
@@ -421,7 +421,7 @@ unsigned int ff_wma_get_large_val(GetBitContext *gb) · 420 unmodified lines
421421 * @param version 0 for wma1,2 1 for wmapro
422422 * @param ptr output buffer
423423 * @param offset offset in the output buffer
424− * @param num_coefs number of input coefficents
424+ * @param num_coefs number of input coefficients
425425 * @param block_len input buffer length (2^n)
426426 * @param frame_len_bits number of bits for escaped run codes
427427 * @param coef_nb_bits number of bits for escaped level codes
libavcodec/wmadec.c+3−3
@@ -79,7 +79,7 @@ static av_cold int wma_decode_init(AVCodecContext *avctx) · 78 unmodified lines
7979
8080 s->avctx = avctx;
8181
82− /* extract flag infos */
82+ /* extract flag info */
8383 flags2 = 0;
8484 extradata = avctx->extradata;
8585 if (avctx->codec->id == AV_CODEC_ID_WMAV1 && avctx->extradata_size >= 4)
@@ -338,7 +338,7 @@ static int decode_exp_vlc(WMACodecContext *s, int ch) · 252 unmodified lines
338338 av_log(s->avctx, AV_LOG_ERROR, "Exponent vlc invalid\n");
339339 return -1;
340340 }
341− /* NOTE: this offset is the same as MPEG4 AAC ! */
341+ /* NOTE: this offset is the same as MPEG-4 AAC! */
342342 last_exp += code - 60;
343343 if ((unsigned) last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) {
344344 av_log(s->avctx, AV_LOG_ERROR, "Exponent out of range: %d\n",
@@ -415,7 +415,7 @@ static void wma_window(WMACodecContext *s, float *out) · 70 unmodified lines
415415
416416 /**
417417 * @return 0 if OK. 1 if last block of frame. return -1 if
418− * unrecorrable error.
418+ * unrecoverable error.
419419 */
420420 static int wma_decode_block(WMACodecContext *s)
421421 {
libavcodec/wmaenc.c+1−1
@@ -57,7 +57,7 @@ static av_cold int encode_init(AVCodecContext *avctx) · 56 unmodified lines
5757 return AVERROR(EINVAL);
5858 }
5959
60− /* extract flag infos */
60+ /* extract flag info */
6161 flags1 = 0;
6262 flags2 = 1;
6363 if (avctx->codec->id == AV_CODEC_ID_WMAV1) {
libavcodec/wmalosslessdec.c+3−3
@@ -101,8 +101,8 @@ typedef struct WmallDecodeCtx { · 100 unmodified lines
101101 uint32_t frame_num; ///< current frame number (not used for decoding)
102102 GetBitContext gb; ///< bitstream reader context
103103 int buf_bit_size; ///< buffer size in bits
104− int16_t *samples_16[WMALL_MAX_CHANNELS]; ///< current samplebuffer pointer (16-bit)
105− int32_t *samples_32[WMALL_MAX_CHANNELS]; ///< current samplebuffer pointer (24-bit)
104+ int16_t *samples_16[WMALL_MAX_CHANNELS]; ///< current sample buffer pointer (16-bit)
105+ int32_t *samples_32[WMALL_MAX_CHANNELS]; ///< current sample buffer pointer (24-bit)
106106 uint8_t drc_gain; ///< gain for the DRC tool
107107 int8_t skip_frame; ///< skip output step
108108 int8_t parsed_all_subframes; ///< all subframes decoded?
@@ -1192,7 +1192,7 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, · 1083 unmodified lines
11921192 /* parse packet header */
11931193 init_get_bits(gb, buf, s->buf_bit_size);
11941194 packet_sequence_number = get_bits(gb, 4);
1195− skip_bits(gb, 1); // Skip seekable_frame_in_packet, currently ununused
1195+ skip_bits(gb, 1); // Skip seekable_frame_in_packet, currently unused
11961196 spliced_packet = get_bits1(gb);
11971197 if (spliced_packet)
11981198 avpriv_request_sample(avctx, "Bitstream splicing");
libavcodec/wmaprodec.c+1−1
@@ -1455,7 +1455,7 @@ static void save_bits(WMAProDecodeCtx *s, GetBitContext* gb, int len, · 1454 unmodified lines
14551455 int buflen;
14561456
14571457 /** when the frame data does not need to be concatenated, the input buffer
1458− is resetted and additional bits from the previous frame are copyed
1458+ is reset and additional bits from the previous frame are copied
14591459 and skipped later so that a fast byte copy is possible */
14601460
14611461 if (!append) {
libavcodec/wmavoice.c+2−2
@@ -1195,7 +1195,7 @@ static void aw_pulse_set1(WMAVoiceContext *s, GetBitContext *gb, · 1194 unmodified lines
11951195 /**
11961196 * @}
11971197 *
1198− * Generate a random number from frame_cntr and block_idx, which will lief
1198+ * Generate a random number from frame_cntr and block_idx, which will live
11991199 * in the range [0, 1000 - block_size] (so it can be used as an index in a
12001200 * table of size 1000 of which you want to read block_size entries).
12011201 *
@@ -1518,7 +1518,7 @@ static int synth_frame(AVCodecContext *ctx, GetBitContext *gb, int frame_idx, · 316 unmodified lines
15181518 /* Pitch is given per block. Per-block pitches are encoded as an
15191519 * absolute value for the first block, and then delta values
15201520 * relative to this value) for all subsequent blocks. The scale of
1521− * this pitch value is semi-logaritmic compared to its use in the
1521+ * this pitch value is semi-logarithmic compared to its use in the
15221522 * decoder, so we convert it to normal scale also. */
15231523 int block_pitch,
15241524 t1 = (s->block_conv_table[1] - s->block_conv_table[0]) << 2,
libavcodec/wmv2enc.c+1−1
@@ -81,7 +81,7 @@ int ff_wmv2_encode_picture_header(MpegEncContext *s, int picture_number) · 80 unmodified lines
8181 put_bits(&s->pb, 5, s->qscale);
8282
8383 s->dc_table_index = 1;
84− s->mv_table_index = 1; /* only if P frame */
84+ s->mv_table_index = 1; /* only if P-frame */
8585 s->per_mb_rl_table = 0;
8686 s->mspel = 0;
8787 w->per_mb_abt = 0;
libavcodec/x86/cabac.h+1−1
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 "sub "tmp" , "low" \n\t"
4343 #else /* HAVE_FAST_CMOV */
4444 #define BRANCHLESS_GET_CABAC_UPDATE(ret, retq, low, range, tmp) \
45−/* P4 Prescott has crappy cmov,sbb,64bit shift so avoid them */ \
45+/* P4 Prescott has crappy cmov,sbb,64-bit shift so avoid them */ \
4646 "sub "low" , "tmp" \n\t"\
4747 "sar $31 , "tmp" \n\t"\
4848 "sub %%ecx , "range" \n\t"\
libavcodec/x86/h264_chromamc.asm+1−1
@@ -1,5 +1,5 @@
11 ;******************************************************************************
2−;* MMX/SSSE3-optimized functions for H264 chroma MC
2+;* MMX/SSSE3-optimized functions for H.264 chroma MC
33 ;* Copyright (c) 2005 Zoltan Hidvegi <hzoli -a- hzoli -d- com>,
44 ;* 2005-2008 Loren Merritt
55 ;*
libavcodec/x86/h264_i386.h+1−1
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 /**
2323 * @file
24− * H.264 / AVC / MPEG4 part10 codec.
24+ * H.264 / AVC / MPEG-4 part10 codec.
2525 * non-MMX i386-specific optimizations for H.264
2626 * @author Michael Niedermayer <michaelni@gmx.at>
2727 */
libavcodec/x86/inline_asm.h+1−1
@@ -50,7 +50,7 @@ · 49 unmodified lines
5050 #endif
5151
5252 // using regr as temporary and for the output result
53−// first argument is unmodifed and second is trashed
53+// first argument is unmodified and second is trashed
5454 // regfe is supposed to contain 0xfefefefefefefefe
5555 #define PAVGB_MMX_NO_RND(rega, regb, regr, regfe) \
5656 "movq "#rega", "#regr" \n\t" \
libavcodec/x86/mpegvideo.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * Optimized for ia32 CPUs by Nick Kurshev <nickols_k@mail.ru>
3− * h263, mpeg1, mpeg2 dequantizer & draw_edges by Michael Niedermayer <michaelni@gmx.at>
3+ * H.263, MPEG-1, MPEG-2 dequantizer & draw_edges by Michael Niedermayer <michaelni@gmx.at>
44 *
55 * This file is part of Libav.
66 *
@@ -179,7 +179,7 @@ static void dct_unquantize_mpeg1_intra_mmx(MpegEncContext *s, · 172 unmodified lines
179179 block0 = block[0] * s->y_dc_scale;
180180 else
181181 block0 = block[0] * s->c_dc_scale;
182− /* XXX: only mpeg1 */
182+ /* XXX: only MPEG-1 */
183183 quant_matrix = s->intra_matrix;
184184 __asm__ volatile(
185185 "pcmpeqw %%mm7, %%mm7 \n\t"
libavcodec/x86/rv40dsp.asm+5−5
@@ -335,14 +335,14 @@ INIT_XMM ssse3 · 334 unmodified lines
335335 FILTER_SSSE3 put
336336 FILTER_SSSE3 avg
337337
338−; %1=5bits weights?, %2=dst %3=src1 %4=src3 %5=stride if sse2
338+; %1=5-bit weights?, %2=dst %3=src1 %4=src3 %5=stride if SSE2
339339 %macro RV40_WCORE 4-5
340340 movh m4, [%3 + r6 + 0]
341341 movh m5, [%4 + r6 + 0]
342342 %if %0 == 4
343343 %define OFFSET r6 + mmsize / 2
344344 %else
345− ; 8x8 block and sse2, stride was provided
345+ ; 8x8 block and SSE2, stride was provided
346346 %define OFFSET r6
347347 add r6, r5
348348 %endif
@@ -350,7 +350,7 @@ FILTER_SSSE3 avg · 1 unmodified line
350350 movh m7, [%4 + OFFSET]
351351
352352 %if %1 == 0
353− ; 14bits weights
353+ ; 14-bit weights
354354 punpcklbw m4, m0
355355 punpcklbw m5, m0
356356 punpcklbw m6, m0
@@ -368,7 +368,7 @@ FILTER_SSSE3 avg · 11 unmodified lines
368368 paddw m4, m5
369369 paddw m6, m7
370370 %else
371− ; 5bits weights
371+ ; 5-bit weights
372372 %if cpuflag(ssse3)
373373 punpcklbw m4, m5
374374 punpcklbw m6, m7
@@ -404,7 +404,7 @@ FILTER_SSSE3 avg · 29 unmodified lines
404404
405405 packuswb m4, m6
406406 %if %0 == 5
407− ; Only called for 8x8 blocks and sse2
407+ ; Only called for 8x8 blocks and SSE2
408408 sub r6, r5
409409 movh [%2 + r6], m4
410410 add r6, r5
libavcodec/x86/vc1dsp_mmx.c+7−7
@@ -81,7 +81,7 @@ · 80 unmodified lines
8181 "movq %%mm"#R1", "#OFF"(%1) \n\t" \
8282 "add %2, %0 \n\t"
8383
84−/** Sacrifying mm6 allows to pipeline loads from src */
84+/** Sacrificing mm6 allows to pipeline loads from src */
8585 static void vc1_put_ver_16b_shift2_mmx(int16_t *dst,
8686 const uint8_t *src, x86_reg stride,
8787 int rnd, int64_t shift)
@@ -165,7 +165,7 @@ VC1_HOR_16b_SHIFT2(OP_AVG, avg_) · 77 unmodified lines
165165
166166 /**
167167 * Purely vertical or horizontal 1/2 shift interpolation.
168− * Sacrify mm6 for *9 factor.
168+ * Sacrifice mm6 for *9 factor.
169169 */
170170 #define VC1_SHIFT2(OP, OPNAME)\
171171 static void OPNAME ## vc1_shift2_mmx(uint8_t *dst, const uint8_t *src,\
@@ -223,7 +223,7 @@ VC1_SHIFT2(OP_AVG, avg_) · 51 unmodified lines
223223 /**
224224 * Core of the 1/4 and 3/4 shift bicubic interpolation.
225225 *
226− * @param UNPACK Macro unpacking arguments from 8 to 16bits (can be empty).
226+ * @param UNPACK Macro unpacking arguments from 8 to 16 bits (can be empty).
227227 * @param MOVQ "movd 1" or "movq 2", if data read is already unpacked.
228228 * @param A1 Address of 1st tap (beware of unpacked/packed).
229229 * @param A2 Address of 2nd tap
@@ -263,7 +263,7 @@ VC1_SHIFT2(OP_AVG, avg_) · 33 unmodified lines
263263 "paddw %%mm2, %%mm4 \n\t" /* 4,53,18,-3 */
264264
265265 /**
266− * Macro to build the vertical 16bits version of vc1_put_shift[13].
266+ * Macro to build the vertical 16 bits version of vc1_put_shift[13].
267267 * Here, offset=src_stride. Parameters passed A1 to A4 must use
268268 * %3 (src_stride) and %4 (3*src_stride).
269269 *
@@ -320,8 +320,8 @@ vc1_put_ver_16b_ ## NAME ## _mmx(int16_t *dst, const uint8_t *src, \ · 50 unmodified lines
320320 }
321321
322322 /**
323− * Macro to build the horizontal 16bits version of vc1_put_shift[13].
324− * Here, offset=16bits, so parameters passed A1 to A4 should be simple.
323+ * Macro to build the horizontal 16 bits version of vc1_put_shift[13].
324+ * Here, offset=16 bits, so parameters passed A1 to A4 should be simple.
325325 *
326326 * @param NAME Either 1 or 3
327327 * @see MSPEL_FILTER13_CORE for information on A1->A4
@@ -357,7 +357,7 @@ OPNAME ## vc1_hor_16b_ ## NAME ## _mmx(uint8_t *dst, x86_reg stride, \ · 29 unmodified lines
357357 }
358358
359359 /**
360− * Macro to build the 8bits, any direction, version of vc1_put_shift[13].
360+ * Macro to build the 8 bits, any direction, version of vc1_put_shift[13].
361361 * Here, offset=src_stride. Parameters passed A1 to A4 must use
362362 * %3 (offset) and %4 (3*offset).
363363 *
libavcodec/xan.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Wing Commander/Xan Video Decoder
3− * Copyright (C) 2003 the ffmpeg project
3+ * Copyright (C) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavcodec/zmbv.c+1−1
@@ -498,7 +498,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac · 497 unmodified lines
498498 return AVERROR_INVALIDDATA;
499499 }
500500
501− if (c->comp == 0) { //Uncompressed data
501+ if (c->comp == 0) { // uncompressed data
502502 if (c->decomp_size < len) {
503503 av_log(avctx, AV_LOG_ERROR, "Buffer too small\n");
504504 return AVERROR_INVALIDDATA;
libavdevice/x11grab.c+1−1
@@ -76,7 +76,7 @@ typedef struct X11GrabContext { · 75 unmodified lines
7676 Display *dpy; /**< X11 display from which x11grab grabs frames */
7777 XImage *image; /**< X11 image holding the grab */
7878 int use_shm; /**< !0 when using XShm extension */
79− XShmSegmentInfo shminfo; /**< When using XShm, keeps track of XShm infos */
79+ XShmSegmentInfo shminfo; /**< When using XShm, keeps track of XShm info */
8080 int draw_mouse; /**< Set by a private option. */
8181 int follow_mouse; /**< Set by a private option. */
8282 int show_region; /**< set by a private option. */
libavfilter/avfilter.h+1−1
@@ -441,7 +441,7 @@ void avfilter_uninit(void); · 440 unmodified lines
441441 * is not registered.
442442 *
443443 * @param filter the filter to register
444− * @return 0 if the registration was succesfull, a negative value
444+ * @return 0 if the registration was successful, a negative value
445445 * otherwise
446446 */
447447 int avfilter_register(AVFilter *filter);
libavfilter/interlace.h+2−2
@@ -47,9 +47,9 @@ enum FieldType { · 46 unmodified lines
4747 typedef struct InterlaceContext {
4848 const AVClass *class;
4949 enum ScanMode scan; // top or bottom field first scanning
50− int lowpass; // enable or disable low pass filterning
50+ int lowpass; // enable or disable low pass filtering
5151 AVFrame *cur, *next; // the two frames from which the new one is obtained
52− int got_output; // signal an output frame is reday to request_frame()
52+ int got_output; // signal an output frame is ready to request_frame()
5353 void (*lowpass_line)(uint8_t *dstp, ptrdiff_t linesize, const uint8_t *srcp,
5454 const uint8_t *srcp_above, const uint8_t *srcp_below);
5555 } InterlaceContext;
libavfilter/pthread.c+1−1
@@ -44,7 +44,7 @@ typedef struct ThreadContext { · 43 unmodified lines
4444 pthread_t *workers;
4545 avfilter_action_func *func;
4646
47− /* per-execute perameters */
47+ /* per-execute parameters */
4848 AVFilterContext *ctx;
4949 void *arg;
5050 int *rets;
libavfilter/setpts.c+1−1
@@ -45,7 +45,7 @@ static const char *const var_names[] = { · 44 unmodified lines
4545 "INTERLACED", ///< tell if the current frame is interlaced
4646 "N", ///< frame / sample number (starting at zero)
4747 "PHI", ///< golden ratio
48− "PI", ///< greek pi
48+ "PI", ///< Greek pi
4949 "PREV_INPTS", ///< previous input PTS
5050 "PREV_OUTPTS", ///< previous output PTS
5151 "PTS", ///< original pts in the file of the frame
libavfilter/vf_gradfun.c+3−3
@@ -26,9 +26,9 @@ · 25 unmodified lines
2626 *
2727 * Apply a boxblur debanding algorithm (based on the gradfun2db
2828 * AviSynth filter by prunedtree).
29− * Foreach pixel, if it's within threshold of the blurred value, make it closer.
30− * So now we have a smoothed and higher bitdepth version of all the shallow
31− * gradients, while leaving detailed areas untouched.
29+ * For each pixel, if it is within the threshold of the blurred value, make it
30+ * closer. So now we have a smoothed and higher bitdepth version of all the
31+ * shallow gradients, while leaving detailed areas untouched.
3232 * Dither it back to 8bit.
3333 */
3434
libavfilter/vf_hqdn3d.c+1−1
@@ -127,7 +127,7 @@ static int denoise_depth(HQDN3DContext *s, · 126 unmodified lines
127127 int w, int h, int sstride, int dstride,
128128 int16_t *spatial, int16_t *temporal, int depth)
129129 {
130− // FIXME: For 16bit depth, frame_ant could be a pointer to the previous
130+ // FIXME: For 16-bit depth, frame_ant could be a pointer to the previous
131131 // filtered frame rather than a separate buffer.
132132 long x, y;
133133 uint16_t *frame_ant = *frame_ant_ptr;
libavfilter/vf_overlay.c+1−1
@@ -75,7 +75,7 @@ static const char *eof_action_str[] = { · 74 unmodified lines
7575
7676 typedef struct OverlayContext {
7777 const AVClass *class;
78− int x, y; ///< position of overlayed picture
78+ int x, y; ///< position of overlaid picture
7979
8080 int max_plane_step[4]; ///< steps per pixel for each plane
8181 int hsub, vsub; ///< chroma subsampling values
libavfilter/vf_select.c+1−1
@@ -35,7 +35,7 @@ · 34 unmodified lines
3535 static const char *const var_names[] = {
3636 "E", ///< Euler number
3737 "PHI", ///< golden ratio
38− "PI", ///< greek pi
38+ "PI", ///< Greek pi
3939
4040 "TB", ///< timebase
4141
libavfilter/vf_yadif.c+1−1
@@ -398,7 +398,7 @@ static int poll_frame(AVFilterLink *link) · 397 unmodified lines
398398 if (val <= 0)
399399 return val;
400400
401− //FIXME change API to not requre this red tape
401+ //FIXME change API to not require this red tape
402402 if (val == 1 && !yadif->next) {
403403 if ((ret = ff_request_frame(link->src->inputs[0])) < 0)
404404 return ret;
libavformat/4xm.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * 4X Technologies .4xm File Demuxer (no muxer)
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/aea.c+1−1
@@ -32,7 +32,7 @@ static int aea_read_probe(AVProbeData *p) · 31 unmodified lines
3232 if (p->buf_size <= 2048+212)
3333 return 0;
3434
35− /* Magic is '00 08 00 00' in Little Endian*/
35+ /* Magic is '00 08 00 00' in little-endian*/
3636 if (AV_RL32(p->buf)==0x800) {
3737 int bsm_s, bsm_e, inb_s, inb_e, ch;
3838 ch = p->buf[264];
libavformat/amr.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * amr file format
3− * Copyright (c) 2001 ffmpeg project
3+ * Copyright (c) 2001 FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -115,7 +115,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) · 108 unmodified lines
115115 return AVERROR(EIO);
116116 }
117117
118− // FIXME this is wrong, this should rather be in a AVParset
118+ // FIXME this is wrong, this should rather be in an AVParser
119119 toc = avio_r8(s->pb);
120120 mode = (toc >> 3) & 0x0F;
121121
libavformat/asf.h+1−1
@@ -40,7 +40,7 @@ typedef struct ASFMainHeader { · 39 unmodified lines
4040 * invalid if broadcasting (could be ignored) */
4141 uint32_t preroll; /**< timestamp of the first packet, in milliseconds
4242 * if nonzero - subtract from time */
43− uint32_t ignore; ///< preroll is 64bit - but let's just ignore it
43+ uint32_t ignore; ///< preroll is 64 bits - but let's just ignore it
4444 uint32_t flags; /**< 0x01 - broadcast
4545 * 0x02 - seekable
4646 * rest is reserved should be 0 */
libavformat/asfdec.c+3−3
@@ -121,8 +121,8 @@ typedef struct ASFContext { · 120 unmodified lines
121121
122122 int stream_index; // from packet header, for the subpayload case
123123
124− // packet parameteres
125− uint64_t sub_header_offset; // offset of subplayload header
124+ // packet parameters
125+ uint64_t sub_header_offset; // offset of subpayload header
126126 int64_t sub_dts;
127127 uint8_t dts_delta; // for subpayloads
128128 uint32_t packet_size_internal; // packet size stored inside ASFPacket, can be 0
@@ -1175,7 +1175,7 @@ static int asf_read_multiple_payload(AVFormatContext *s, AVPacket *pkt, · 1046 unmodified lines
11751175 int ret;
11761176 int skip = 0;
11771177
1178− // if replicated lenght is 1, subpayloads are present
1178+ // if replicated length is 1, subpayloads are present
11791179 if (asf->rep_data_len == 1) {
11801180 asf->sub_left = 1;
11811181 asf->state = READ_MULTI_SUB;
libavformat/asfenc.c+2−2
@@ -209,7 +209,7 @@ typedef struct ASFContext { · 208 unmodified lines
209209 uint32_t seqno;
210210 int is_streamed;
211211 ASFStream streams[128]; ///< it's max number and it's not that big
212− /* non streamed additonnal info */
212+ /* non-streamed additional info */
213213 uint64_t nb_packets; ///< how many packets are there in the file, invalid if broadcasting
214214 uint64_t duration; ///< in ms
215215 /* packet filling */
@@ -446,7 +446,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, · 230 unmodified lines
446446 avio_wl16(pb, 0);
447447 end_header(pb, hpos);
448448
449− /* title and other infos */
449+ /* title and other info */
450450 if (has_title) {
451451 int len;
452452 uint8_t *buf;
libavformat/avc.c+1−1
@@ -106,7 +106,7 @@ int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) · 105 unmodified lines
106106 int ff_isom_write_avcc(AVIOContext *pb, const uint8_t *data, int len)
107107 {
108108 if (len > 6) {
109− /* check for h264 start code */
109+ /* check for H.264 start code */
110110 if (AV_RB32(data) == 0x00000001 ||
111111 AV_RB24(data) == 0x000001) {
112112 uint8_t *buf=NULL, *end, *start;
libavformat/avformat.h+1−1
@@ -1931,7 +1931,7 @@ void av_url_split(char *proto, int proto_size, · 1930 unmodified lines
19311931 * @param ic the context to analyze
19321932 * @param index the index to print, if you have multiple inputs or outputs
19331933 * @param url the URL to print, such as source or destination file
1934− * @param is_output whether the context is input or ouput
1934+ * @param is_output whether the context is input or output
19351935 */
19361936 void av_dump_format(AVFormatContext *ic,
19371937 int index,
libavformat/avidec.c+1−1
@@ -548,7 +548,7 @@ static int avi_read_header(AVFormatContext *s) · 547 unmodified lines
548548 st->start_time = 0;
549549 avio_rl32(pb); /* buffer size */
550550 avio_rl32(pb); /* quality */
551− ast->sample_size = avio_rl32(pb); /* sample ssize */
551+ ast->sample_size = avio_rl32(pb); /* sample size */
552552 ast->cum_len *= FFMAX(1, ast->sample_size);
553553 av_log(s, AV_LOG_TRACE, "%"PRIu32" %"PRIu32" %d\n",
554554 ast->rate, ast->scale, ast->sample_size);
libavformat/avio.h+4−4
@@ -195,16 +195,16 @@ int avio_put_str16le(AVIOContext *s, const char *str); · 194 unmodified lines
195195 int avio_put_str16be(AVIOContext *s, const char *str);
196196
197197 /**
198− * Passing this as the "whence" parameter to a seek function causes it to
198+ * ORing this as the "whence" parameter to a seek function causes it to
199199 * return the filesize without seeking anywhere. Supporting this is optional.
200200 * If it is not supported then the seek function will return <0.
201201 */
202202 #define AVSEEK_SIZE 0x10000
203203
204204 /**
205− * Oring this flag as into the "whence" parameter to a seek function causes it to
206− * seek by any means (like reopening and linear reading) or other normally unreasonble
207− * means that can be extreemly slow.
205+ * Passing this flag as the "whence" parameter to a seek function causes it to
206+ * seek by any means (like reopening and linear reading) or other normally unreasonable
207+ * means that can be extremely slow.
208208 * This may be ignored by the seek code.
209209 */
210210 #define AVSEEK_FORCE 0x20000
libavformat/avisynth.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * AviSynth/AvxSynth support
3− * Copyright (c) 2012 AvxSynth Team.
3+ * Copyright (c) 2012 AvxSynth Team
44 *
55 * This file is part of Libav.
66 *
libavformat/avlanguage.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 */
2727 enum AVLangCodespace {
2828 AV_LANG_ISO639_2_BIBL, /** 3-char bibliographic language codes as per ISO-IEC 639-2 */
29− AV_LANG_ISO639_2_TERM, /** 3-char terminologic language codes as per ISO-IEC 639-2 */
29+ AV_LANG_ISO639_2_TERM, /** 3-char terminological language codes as per ISO-IEC 639-2 */
3030 AV_LANG_ISO639_1 /** 2-char code of language as per ISO/IEC 639-1 */
3131 };
3232
libavformat/bink.c+1−1
@@ -239,7 +239,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) · 238 unmodified lines
239239 pkt->pts = bink->audio_pts[bink->current_track - 1];
240240
241241 /* Each audio packet reports the number of decompressed samples
242− (in bytes). We use this value to calcuate the audio PTS */
242+ (in bytes). We use this value to calculate the audio PTS */
243243 if (pkt->size >= 4)
244244 bink->audio_pts[bink->current_track -1] +=
245245 AV_RL32(pkt->data) / (2 * s->streams[bink->current_track]->codecpar->channels);
libavformat/bmv.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Discworld II BMV demuxer
3− * Copyright (c) 2011 Konstantin Shishkov.
3+ * Copyright (c) 2011 Konstantin Shishkov
44 *
55 * This file is part of Libav.
66 *
libavformat/dump.c+1−1
@@ -357,7 +357,7 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent) · 356 unmodified lines
357357 dump_paramchange(ctx, &sd);
358358 break;
359359 case AV_PKT_DATA_H263_MB_INFO:
360− av_log(ctx, AV_LOG_INFO, "h263 macroblock info");
360+ av_log(ctx, AV_LOG_INFO, "H.263 macroblock info");
361361 break;
362362 case AV_PKT_DATA_REPLAYGAIN:
363363 av_log(ctx, AV_LOG_INFO, "replaygain: ");
libavformat/dv.c+8−8
@@ -102,11 +102,11 @@ static const int dv_audio_frequency[3] = { · 101 unmodified lines
102102
103103 /*
104104 * There's a couple of assumptions being made here:
105− * 1. By default we silence erroneous (0x8000/16bit 0x800/12bit) audio samples.
105+ * 1. By default we silence erroneous (0x8000/16-bit 0x800/12-bit) audio samples.
106106 * We can pass them upwards when libavcodec will be ready to deal with them.
107107 * 2. We don't do software emphasis.
108− * 3. Audio is always returned as 16bit linear samples: 12bit nonlinear samples
109− * are converted into 16bit linear ones.
108+ * 3. Audio is always returned as 16-bit linear samples: 12-bit nonlinear samples
109+ * are converted into 16-bit linear ones.
110110 */
111111 static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm,
112112 const AVDVProfile *sys)
@@ -122,7 +122,7 @@ static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm, · 9 unmodified lines
122122
123123 smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */
124124 freq = as_pack[4] >> 3 & 0x07; /* 0 - 48kHz, 1 - 44,1kHz, 2 - 32kHz */
125− quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
125+ quant = as_pack[4] & 0x07; /* 0 - 16-bit linear, 1 - 12-bit nonlinear */
126126
127127 if (quant > 1)
128128 return -1; /* unsupported quantization */
@@ -148,7 +148,7 @@ static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm, · 19 unmodified lines
148148 for (i = 0; i < sys->difseg_size; i++) {
149149 frame += 6 * 80; /* skip DIF segment header */
150150 if (quant == 1 && i == half_ch) {
151− /* next stereo channel (12bit mode only) */
151+ /* next stereo channel (12-bit mode only) */
152152 pcm = ppcm[ipcm++];
153153 if (!pcm)
154154 break;
@@ -157,7 +157,7 @@ static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm, · 2 unmodified lines
157157 /* for each AV sequence */
158158 for (j = 0; j < 9; j++) {
159159 for (d = 8; d < 80; d += 2) {
160− if (quant == 0) { /* 16bit quantization */
160+ if (quant == 0) { /* 16-bit quantization */
161161 of = sys->audio_shuffle[i][j] +
162162 (d - 8) / 2 * sys->audio_stride;
163163 if (of * 2 >= size)
@@ -170,7 +170,7 @@ static int dv_extract_audio(uint8_t *frame, uint8_t **ppcm, · 6 unmodified lines
170170
171171 if (pcm[of * 2 + 1] == 0x80 && pcm[of * 2] == 0x00)
172172 pcm[of * 2 + 1] = 0;
173− } else { /* 12bit quantization */
173+ } else { /* 12-bit quantization */
174174 lc = ((uint16_t)frame[d] << 4) |
175175 ((uint16_t)frame[d + 2] >> 4);
176176 rc = ((uint16_t)frame[d + 1] << 4) |
@@ -219,7 +219,7 @@ static int dv_extract_audio_info(DVDemuxContext *c, uint8_t *frame) · 42 unmodified lines
219219 smpls = as_pack[1] & 0x3f; /* samples in this frame - min. samples */
220220 freq = as_pack[4] >> 3 & 0x07; /* 0 - 48kHz, 1 - 44,1kHz, 2 - 32kHz */
221221 stype = as_pack[3] & 0x1f; /* 0 - 2CH, 2 - 4CH, 3 - 8CH */
222− quant = as_pack[4] & 0x07; /* 0 - 16bit linear, 1 - 12bit nonlinear */
222+ quant = as_pack[4] & 0x07; /* 0 - 16-bit linear, 1 - 12-bit nonlinear */
223223
224224 if (freq >= FF_ARRAY_ELEMS(dv_audio_frequency)) {
225225 av_log(c->fctx, AV_LOG_ERROR,
libavformat/dvenc.c+2−2
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "libavutil/fifo.h"
3939 #include "libavutil/mathematics.h"
4040
41−#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
41+#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32-bit audio
4242
4343 struct DVMuxContext {
4444 const AVDVProfile* sys; /* current DV profile, e.g.: 525/60, 625/50 */
@@ -124,7 +124,7 @@ static int dv_write_pack(enum dv_pack_type pack_id, DVMuxContext *c, uint8_t* bu · 79 unmodified lines
124124 buf[4] = (1 << 7) | /* emphasis: 1 -- off */
125125 (0 << 6) | /* emphasis time constant: 0 -- reserved */
126126 (0 << 3) | /* frequency: 0 -- 48kHz, 1 -- 44,1kHz, 2 -- 32kHz */
127− 0; /* quantization: 0 -- 16bit linear, 1 -- 12bit nonlinear */
127+ 0; /* quantization: 0 -- 16-bit linear, 1 -- 12-bit nonlinear */
128128 va_end(ap);
129129 break;
130130 case dv_audio_control:
libavformat/electronicarts.c+1−1
@@ -1,5 +1,5 @@
11 /* Electronic Arts Multimedia File Demuxer
2− * Copyright (c) 2004 The ffmpeg Project
2+ * Copyright (c) 2004 The FFmpeg project
33 * Copyright (c) 2006-2008 Peter Ross
44 *
55 * This file is part of Libav.
libavformat/flic.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * FLI/FLC Animation File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/flvdec.c+2−2
@@ -4,8 +4,8 @@ · 3 unmodified lines
44 *
55 * This demuxer will generate a 1 byte extradata for VP6F content.
66 * It is composed of:
7− * - upper 4bits: difference between encoded width and visible width
8− * - lower 4bits: difference between encoded height and visible height
7+ * - upper 4 bits: difference between encoded width and visible width
8+ * - lower 4 bits: difference between encoded height and visible height
99 *
1010 * This file is part of Libav.
1111 *
libavformat/gxfenc.c+1−1
@@ -42,7 +42,7 @@ typedef struct GXFStreamContext { · 41 unmodified lines
4242 int pframes;
4343 int bframes;
4444 int p_per_gop;
45− int b_per_i_or_p; ///< number of B frames per I frame or P frame
45+ int b_per_i_or_p; ///< number of B-frames per I-frame or P-frame
4646 int first_gop_closed;
4747 unsigned order; ///< interleaving order
4848 } GXFStreamContext;
libavformat/hevc.c+1−1
@@ -799,7 +799,7 @@ static void hvcc_init(HEVCDecoderConfigurationRecord *hvcc) · 798 unmodified lines
799799
800800 /*
801801 * Initialize this field with an invalid value which can be used to detect
802− * whether we didn't see any VUI (in wich case it should be reset to zero).
802+ * whether we didn't see any VUI (in which case it should be reset to zero).
803803 */
804804 hvcc->min_spatial_segmentation_idc = MAX_SPATIAL_SEGMENTATION + 1;
805805 }
libavformat/http.h+1−1
@@ -40,7 +40,7 @@ void ff_http_init_auth_state(URLContext *dest, const URLContext *src); · 39 unmodified lines
4040 /**
4141 * Send a new HTTP request, reusing the old connection.
4242 *
43− * @param h pointer to the ressource
43+ * @param h pointer to the resource
4444 * @param uri uri used to perform the request
4545 * @return a negative value if an error condition occurred, 0
4646 * otherwise
libavformat/httpauth.h+1−1
@@ -62,7 +62,7 @@ typedef struct HTTPAuthState { · 61 unmodified lines
6262 */
6363 char realm[200];
6464 /**
65− * The parameters specifiec to digest authentication.
65+ * The parameters specific to digest authentication.
6666 */
6767 DigestParams digest_params;
6868 /**
libavformat/id3v2enc.c+1−1
@@ -83,7 +83,7 @@ static int id3v2_put_ttag(ID3v2EncContext *id3, AVIOContext *avioc, const char * · 82 unmodified lines
8383 len = avio_close_dyn_buf(dyn_buf, &pb);
8484
8585 avio_wb32(avioc, tag);
86− /* ID3v2.3 frame size is not synchsafe */
86+ /* ID3v2.3 frame size is not sync-safe */
8787 if (id3->version == 3)
8888 avio_wb32(avioc, len);
8989 else
libavformat/idcin.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * id Quake II CIN File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -33,7 +33,7 @@ · 26 unmodified lines
3333 * types. However, a CIN file does start with 5 32-bit numbers that
3434 * specify audio and video parameters. This demuxer gets around the lack
3535 * of file signature by performing sanity checks on those parameters.
36− * Probabalistically, this is a reasonable solution since the number of
36+ * Probabilistically, this is a reasonable solution since the number of
3737 * valid combinations of the 5 parameters is a very small subset of the
3838 * total 160-bit number space.
3939 *
libavformat/idroqdec.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * id RoQ (.roq) File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/iff.c+1−1
@@ -194,7 +194,7 @@ static int iff_read_header(AVFormatContext *s) · 193 unmodified lines
194194 compression = avio_r8(pb);
195195 }
196196 if (data_size >= 16) {
197− avio_skip(pb, 3); // paddding, transparent
197+ avio_skip(pb, 3); // padding, transparent
198198 st->sample_aspect_ratio.num = avio_r8(pb);
199199 st->sample_aspect_ratio.den = avio_r8(pb);
200200 }
libavformat/internal.h+1−1
@@ -437,7 +437,7 @@ static inline int ff_rename(const char *oldpath, const char *newpath) · 436 unmodified lines
437437
438438 /**
439439 * A wrapper around AVFormatContext.io_close that should be used
440− * intead of calling the pointer directly.
440+ * instead of calling the pointer directly.
441441 */
442442 void ff_format_io_close(AVFormatContext *s, AVIOContext **pb);
443443
libavformat/ipmovie.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Interplay MVE File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/isom.c+46−46
@@ -38,15 +38,15 @@ const AVCodecTag ff_mp4_obj_type[] = { · 37 unmodified lines
3838 { AV_CODEC_ID_HEVC , 0x23 },
3939 { AV_CODEC_ID_AAC , 0x40 },
4040 { AV_CODEC_ID_MP4ALS , 0x40 }, /* 14496-3 ALS */
41− { AV_CODEC_ID_MPEG2VIDEO , 0x61 }, /* MPEG2 Main */
42− { AV_CODEC_ID_MPEG2VIDEO , 0x60 }, /* MPEG2 Simple */
43− { AV_CODEC_ID_MPEG2VIDEO , 0x62 }, /* MPEG2 SNR */
44− { AV_CODEC_ID_MPEG2VIDEO , 0x63 }, /* MPEG2 Spatial */
45− { AV_CODEC_ID_MPEG2VIDEO , 0x64 }, /* MPEG2 High */
46− { AV_CODEC_ID_MPEG2VIDEO , 0x65 }, /* MPEG2 422 */
47− { AV_CODEC_ID_AAC , 0x66 }, /* MPEG2 AAC Main */
48− { AV_CODEC_ID_AAC , 0x67 }, /* MPEG2 AAC Low */
49− { AV_CODEC_ID_AAC , 0x68 }, /* MPEG2 AAC SSR */
41+ { AV_CODEC_ID_MPEG2VIDEO , 0x61 }, /* MPEG-2 Main */
42+ { AV_CODEC_ID_MPEG2VIDEO , 0x60 }, /* MPEG-2 Simple */
43+ { AV_CODEC_ID_MPEG2VIDEO , 0x62 }, /* MPEG-2 SNR */
44+ { AV_CODEC_ID_MPEG2VIDEO , 0x63 }, /* MPEG-2 Spatial */
45+ { AV_CODEC_ID_MPEG2VIDEO , 0x64 }, /* MPEG-2 High */
46+ { AV_CODEC_ID_MPEG2VIDEO , 0x65 }, /* MPEG-2 422 */
47+ { AV_CODEC_ID_AAC , 0x66 }, /* MPEG-2 AAC Main */
48+ { AV_CODEC_ID_AAC , 0x67 }, /* MPEG-2 AAC Low */
49+ { AV_CODEC_ID_AAC , 0x68 }, /* MPEG-2 AAC SSR */
5050 { AV_CODEC_ID_MP3 , 0x69 }, /* 13818-3 */
5151 { AV_CODEC_ID_MP2 , 0x69 }, /* 11172-3 */
5252 { AV_CODEC_ID_MPEG1VIDEO , 0x6A }, /* 11172-2 */
@@ -58,9 +58,9 @@ const AVCodecTag ff_mp4_obj_type[] = { · 5 unmodified lines
5858 { AV_CODEC_ID_DIRAC , 0xA4 },
5959 { AV_CODEC_ID_AC3 , 0xA5 },
6060 { AV_CODEC_ID_DTS , 0xA9 }, /* mp4ra.org */
61− { AV_CODEC_ID_TSCC2 , 0xD0 }, /* non standard, camtasia uses it */
62− { AV_CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */
63− { AV_CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */
61+ { AV_CODEC_ID_TSCC2 , 0xD0 }, /* nonstandard, camtasia uses it */
62+ { AV_CODEC_ID_VORBIS , 0xDD }, /* nonstandard, gpac uses it */
63+ { AV_CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* nonstandard, see unsupported-embedded-subs-2.mp4 */
6464 { AV_CODEC_ID_QCELP , 0xE1 },
6565 { AV_CODEC_ID_MPEG4SYSTEMS, 0x01 },
6666 { AV_CODEC_ID_MPEG4SYSTEMS, 0x02 },
@@ -70,11 +70,11 @@ const AVCodecTag ff_mp4_obj_type[] = { · 3 unmodified lines
7070 const AVCodecTag ff_codec_movvideo_tags[] = {
7171 /* { AV_CODEC_ID_, MKTAG('I', 'V', '5', '0') }, *//* Indeo 5.0 */
7272
73− { AV_CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* Uncompressed RGB */
74− { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* Uncompressed YUV422 */
75− { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID Uncompressed) */
76− { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* UNCOMPRESSED 8BIT 4:2:2 */
77− { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2vuy but byte swapped */
73+ { AV_CODEC_ID_RAWVIDEO, MKTAG('r', 'a', 'w', ' ') }, /* uncompressed RGB */
74+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */
75+ { AV_CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID uncompressed) */
76+ { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */
77+ { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */
7878
7979 { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
8080 { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
@@ -93,12 +93,12 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 12 unmodified lines
9393 { AV_CODEC_ID_RAWVIDEO, MKTAG('R', '4', '2', '0') }, /* Radius DV YUV PAL */
9494 { AV_CODEC_ID_RAWVIDEO, MKTAG('R', '4', '1', '1') }, /* Radius DV YUV NTSC */
9595
96− { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* UNCOMPRESSED 10BIT RGB */
97− { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* UNCOMPRESSED 10BIT RGB */
98− { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* UNCOMPRESSED 10BIT RGB */
99− { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* UNCOMPRESSED 10BIT 4:2:2 */
100− { AV_CODEC_ID_V210, MKTAG('b', 'x', 'y', '2') }, /* BOXX 10BIT 4:2:2 */
101− { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* UNCOMPRESSED 10BIT 4:4:4 */
96+ { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'k') }, /* uncompressed 10-bit RGB */
97+ { AV_CODEC_ID_R10K, MKTAG('R', '1', '0', 'g') }, /* uncompressed 10-bit RGB */
98+ { AV_CODEC_ID_R210, MKTAG('r', '2', '1', '0') }, /* uncompressed 10-bit RGB */
99+ { AV_CODEC_ID_V210, MKTAG('v', '2', '1', '0') }, /* uncompressed 10-bit 4:2:2 */
100+ { AV_CODEC_ID_V210, MKTAG('b', 'x', 'y', '2') }, /* BOXX 10-bit 4:2:2 */
101+ { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* uncompressed 10-bit 4:4:4 */
102102
103103 { AV_CODEC_ID_MJPEG, MKTAG('j', 'p', 'e', 'g') }, /* PhotoJPEG */
104104 { AV_CODEC_ID_MJPEG, MKTAG('m', 'j', 'p', 'a') }, /* Motion-JPEG (format A) */
@@ -117,8 +117,8 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 12 unmodified lines
117117 { AV_CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') },
118118 { AV_CODEC_ID_MPEG4, MKTAG('3', 'I', 'V', '2') }, /* experimental: 3IVX files before ivx D4 4.5.1 */
119119
120− { AV_CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H263 */
121− { AV_CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H263 ?? works */
120+ { AV_CODEC_ID_H263, MKTAG('h', '2', '6', '3') }, /* H.263 */
121+ { AV_CODEC_ID_H263, MKTAG('s', '2', '6', '3') }, /* H.263 ?? works */
122122
123123 { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', 'p') }, /* DV PAL */
124124 { AV_CODEC_ID_DVVIDEO, MKTAG('d', 'v', 'c', ' ') }, /* DV NTSC */
@@ -165,7 +165,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 40 unmodified lines
165165 { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '5') }, /* AVC-Intra 100M 1080i50 */
166166 { AV_CODEC_ID_H264, MKTAG('a', 'i', '1', '6') }, /* AVC-Intra 100M 1080i60 */
167167 { AV_CODEC_ID_H264, MKTAG('A', 'V', 'i', 'n') }, /* AVC-Intra with implicit SPS/PPS */
168− { AV_CODEC_ID_H264, MKTAG('a', 'i', 'v', 'x') }, /* XAVC 4:2:2 10bit */
168+ { AV_CODEC_ID_H264, MKTAG('a', 'i', 'v', 'x') }, /* XAVC 10-bit 4:2:2 */
169169 { AV_CODEC_ID_H264, MKTAG('r', 'v', '6', '4') }, /* X-Com Radvision */
170170
171171 { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', '1', 'v', ' ') },
@@ -173,22 +173,22 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 1 unmodified line
173173 { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', 'e', 'g') }, /* MPEG */
174174 { AV_CODEC_ID_MPEG1VIDEO, MKTAG('m', 'p', '1', 'v') }, /* CoreMedia CMVideoCodecType */
175175 { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', '2', 'v', '1') }, /* Apple MPEG-2 Camcorder */
176− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG2 HDV 720p30 */
177− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG2 HDV 1080i60 */
178− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG2 HDV 1080i50 */
179− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG2 HDV 720p24 */
180− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG2 HDV 720p25 */
181− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG2 HDV 1080p24 */
182− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG2 HDV 1080p25 */
183− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG2 HDV 1080p30 */
184− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG2 HDV 720p60 JVC */
185− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG2 HDV 720p50 */
186− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG2 IMX NTSC 525/60 50mb/s produced by FCP */
187− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG2 IMX PAL 625/50 50mb/s produced by FCP */
188− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG2 IMX NTSC 525/60 40mb/s produced by FCP */
189− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG2 IMX PAL 625/50 40mb/s produced by FCP */
190− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG2 IMX NTSC 525/60 30mb/s produced by FCP */
191− { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG2 IMX PAL 625/50 30mb/s produced by FCP */
176+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '1') }, /* MPEG-2 HDV 720p30 */
177+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '2') }, /* MPEG-2 HDV 1080i60 */
178+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '3') }, /* MPEG-2 HDV 1080i50 */
179+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '4') }, /* MPEG-2 HDV 720p24 */
180+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '5') }, /* MPEG-2 HDV 720p25 */
181+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '6') }, /* MPEG-2 HDV 1080p24 */
182+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '7') }, /* MPEG-2 HDV 1080p25 */
183+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '8') }, /* MPEG-2 HDV 1080p30 */
184+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', '9') }, /* MPEG-2 HDV 720p60 JVC */
185+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('h', 'd', 'v', 'a') }, /* MPEG-2 HDV 720p50 */
186+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'n') }, /* MPEG-2 IMX NTSC 525/60 50mb/s produced by FCP */
187+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '5', 'p') }, /* MPEG-2 IMX PAL 625/50 50mb/s produced by FCP */
188+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'n') }, /* MPEG-2 IMX NTSC 525/60 40mb/s produced by FCP */
189+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '4', 'p') }, /* MPEG-2 IMX PAL 625/50 40mb/s produced by FCP */
190+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'n') }, /* MPEG-2 IMX NTSC 525/60 30mb/s produced by FCP */
191+ { AV_CODEC_ID_MPEG2VIDEO, MKTAG('m', 'x', '3', 'p') }, /* MPEG-2 IMX PAL 625/50 30mb/s produced by FCP */
192192 { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '1') }, /* XDCAM HD422 720p30 CBR */
193193 { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '4') }, /* XDCAM HD422 720p24 CBR */
194194 { AV_CODEC_ID_MPEG2VIDEO, MKTAG('x', 'd', '5', '5') }, /* XDCAM HD422 720p25 CBR */
@@ -321,7 +321,7 @@ const AVCodecTag ff_codec_movsubtitle_tags[] = { · 126 unmodified lines
321321 /* map numeric codes from mdhd atom to ISO 639 */
322322 /* cf. QTFileFormat.pdf p253, qtff.pdf p205 */
323323 /* http://developer.apple.com/documentation/mac/Text/Text-368.html */
324−/* deprecated by putting the code as 3*5bit ascii */
324+/* deprecated by putting the code as 3*5 bits ASCII */
325325 static const char mov_mdhd_language_map[][4] = {
326326 /* 0-9 */
327327 "eng", "fra", "ger", "ita", "dut", "sve", "spa", "dan", "por", "nor",
@@ -359,7 +359,7 @@ int ff_mov_iso639_to_lang(const char lang[4], int mp4) · 31 unmodified lines
359359 /* handle undefined as such */
360360 if (lang[0] == '\0')
361361 lang = "und";
362− /* 5bit ascii */
362+ /* 5 bits ASCII */
363363 for (i = 0; i < 3; i++) {
364364 uint8_t c = lang[i];
365365 c -= 0x60;
@@ -411,7 +411,7 @@ int ff_mp4_read_descr(AVFormatContext *fc, AVIOContext *pb, int *tag) · 45 unmodified lines
411411 int len;
412412 *tag = avio_r8(pb);
413413 len = ff_mp4_read_descr_len(pb);
414− av_log(fc, AV_LOG_TRACE, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len);
414+ av_log(fc, AV_LOG_TRACE, "MPEG-4 description: tag=0x%02x len=%d\n", *tag, len);
415415 return len;
416416 }
417417
@@ -453,7 +453,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext · 35 unmodified lines
453453 av_log(fc, AV_LOG_TRACE, "esds object type id 0x%02x\n", object_type_id);
454454 len = ff_mp4_read_descr(fc, pb, &tag);
455455 if (tag == MP4DecSpecificDescrTag) {
456− av_log(fc, AV_LOG_TRACE, "Specific MPEG4 header len=%d\n", len);
456+ av_log(fc, AV_LOG_TRACE, "Specific MPEG-4 header len=%d\n", len);
457457 if (!len || (uint64_t)len > (1<<30))
458458 return -1;
459459 av_free(st->codecpar->extradata);
libavformat/matroska.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Matroska common data
3− * Copyright (c) 2003-2004 The ffmpeg Project
3+ * Copyright (c) 2003-2004 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/matroska.h+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Matroska constants
3− * Copyright (c) 2003-2004 The ffmpeg Project
3+ * Copyright (c) 2003-2004 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/mms.c+1−1
@@ -97,7 +97,7 @@ int ff_mms_asf_header_parser(MMSContext *mms) · 96 unmodified lines
9797 flags = AV_RL16(p + sizeof(ff_asf_guid)*3 + 24);
9898 stream_id = flags & 0x7F;
9999 //The second condition is for checking CS_PKT_STREAM_ID_REQUEST packet size,
100− //we can calcuate the packet size by stream_num.
100+ //we can calculate the packet size by stream_num.
101101 //Please see function send_stream_selection_request().
102102 if (mms->stream_num < MMS_MAX_STREAMS &&
103103 46 + mms->stream_num * 6 < sizeof(mms->out_buffer)) {
libavformat/mmsh.c+1−1
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141 // see Ref 2.2.1.8
4242 #define USERAGENT "User-Agent: NSPlayer/4.1.0.3856\r\n"
4343 // see Ref 2.2.1.4.33
44−// the guid value can be changed to any valid value.
44+// the GUID value can be changed to any valid value.
4545 #define CLIENTGUID "Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}\r\n"
4646
4747 // see Ref 2.2.3 for packet type define:
libavformat/mmst.c+2−2
@@ -419,7 +419,7 @@ static int send_startup_packet(MMSTContext *mmst) · 418 unmodified lines
419419 char data_string[256];
420420 MMSContext *mms = &mmst->mms;
421421 // SubscriberName is defined in MS specification linked below.
422− // The guid value can be any valid value.
422+ // The GUID value can be any valid value.
423423 // http://download.microsoft.com/
424424 // download/9/5/E/95EF66AF-9026-4BB0-A41D-A4F81802D92C/%5BMS-WMSP%5D.pdf
425425 snprintf(data_string, sizeof(data_string),
@@ -515,7 +515,7 @@ static int mms_open(URLContext *h, const char *uri, int flags) · 89 unmodified lines
515515 sizeof(mmst->path), uri);
516516
517517 if(port<0)
518− port = 1755; // defaut mms protocol port
518+ port = 1755; // default MMS protocol port
519519
520520 // establish tcp connection.
521521 ff_url_join(tcpname, sizeof(tcpname), "tcp", NULL, mmst->host, port, NULL);
libavformat/mov.c+3−3
@@ -1141,7 +1141,7 @@ static int mov_read_fiel(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 1140 unmodified lines
11411141 return 0;
11421142 }
11431143
1144−/* FIXME modify qdm2/svq3/h264 decoders to take full atom as extradata */
1144+/* FIXME modify QDM2/SVQ3/H.264 decoders to take full atom as extradata */
11451145 static int mov_read_extradata(MOVContext *c, AVIOContext *pb, MOVAtom atom)
11461146 {
11471147 AVStream *st;
@@ -1373,7 +1373,7 @@ static int mov_codec_id(AVStream *st, uint32_t format) · 225 unmodified lines
13731373 if (st->codecpar->codec_type != AVMEDIA_TYPE_VIDEO && id > 0) {
13741374 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
13751375 } else if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO &&
1376− /* skip old asf mpeg4 tag */
1376+ /* skip old ASF MPEG-4 tag */
13771377 format && format != MKTAG('m','p','4','s')) {
13781378 id = ff_codec_get_id(ff_codec_movvideo_tags, format);
13791379 if (id <= 0)
@@ -1427,7 +1427,7 @@ static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb, · 47 unmodified lines
14271427 /* codec_tag YV12 triggers an UV swap in rawdec.c */
14281428 if (!memcmp(codec_name, "Planar Y'CbCr 8-bit 4:2:0", 25))
14291429 st->codecpar->codec_tag = MKTAG('I', '4', '2', '0');
1430− /* Flash Media Server uses tag H263 with Sorenson Spark */
1430+ /* Flash Media Server uses tag H.263 with Sorenson Spark */
14311431 if (st->codecpar->codec_tag == MKTAG('H','2','6','3') &&
14321432 !memcmp(codec_name, "Sorenson H263", 13))
14331433 st->codecpar->codec_id = AV_CODEC_ID_FLV1;
libavformat/movenc-test.c+5−5
@@ -349,7 +349,7 @@ int main(int argc, char **argv) · 348 unmodified lines
349349 finish();
350350 close_out();
351351
352− // Write a similar file, but with b-frames and audio preroll, handled
352+ // Write a similar file, but with B-frames and audio preroll, handled
353353 // via an edit list.
354354 init_out("non-empty-moov-elst");
355355 av_dict_set(&opts, "movflags", "frag_keyframe", 0);
@@ -359,7 +359,7 @@ int main(int argc, char **argv) · 3 unmodified lines
359359 finish();
360360 close_out();
361361
362− // Use b-frames but no audio-preroll, but without an edit list.
362+ // Use B-frames but no audio-preroll, but without an edit list.
363363 // Due to avoid_negative_ts == AVFMT_AVOID_NEG_TS_MAKE_ZERO, the dts
364364 // of the first audio packet is > 0, but it is set to zero since edit
365365 // lists aren't used, increasing the duration of the first packet instead.
@@ -372,7 +372,7 @@ int main(int argc, char **argv) · 6 unmodified lines
372372 close_out();
373373
374374 format = "ismv";
375− // Write an ISMV, with b-frames and audio preroll.
375+ // Write an ISMV, with B-frames and audio preroll.
376376 init_out("ismv");
377377 av_dict_set(&opts, "movflags", "frag_keyframe", 0);
378378 init(1, 1);
@@ -554,7 +554,7 @@ int main(int argc, char **argv) · 175 unmodified lines
554554 finish();
555555
556556
557− // Test discontinously written fragments with b-frames (where the
557+ // Test discontinuously written fragments with B-frames (where the
558558 // assumption of starting at pts=0 works) but not with audio preroll
559559 // (which can't be guessed).
560560 av_dict_set(&opts, "movflags", "frag_custom+delay_moov+dash", 0);
@@ -588,7 +588,7 @@ int main(int argc, char **argv) · 27 unmodified lines
588588 finish();
589589
590590
591− // Test discontinously written fragments with b-frames and audio preroll,
591+ // Test discontinuously written fragments with B-frames and audio preroll,
592592 // properly signaled.
593593 av_dict_set(&opts, "movflags", "frag_custom+delay_moov+dash", 0);
594594 init(1, 1);
libavformat/movenc.c+3−3
@@ -1657,7 +1657,7 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVMuxContext *mov, · 1656 unmodified lines
16571657 /* In the positive delay case, the delay includes the cts
16581658 * offset, and the second edit list entry below trims out
16591659 * the same amount from the actual content. This makes sure
1660− * that the offsetted last sample is included in the edit
1660+ * that the offset last sample is included in the edit
16611661 * list duration as well. */
16621662 if (version == 1) {
16631663 avio_wb64(pb, delay);
@@ -3433,8 +3433,8 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) · 1769 unmodified lines
34333433 }
34343434
34353435 if (par->codec_id == AV_CODEC_ID_H264 && trk->vos_len > 0 && *(uint8_t *)trk->vos_data != 1) {
3436− /* from x264 or from bytestream h264 */
3437− /* nal reformating needed */
3436+ /* from x264 or from bytestream H.264 */
3437+ /* NAL reformatting needed */
34383438 if (trk->hint_track >= 0 && trk->hint_track < mov->nb_streams) {
34393439 ff_avc_parse_nal_units_buf(pkt->data, &reformatted_data,
34403440 &size);
libavformat/mpeg.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 demuxer
2+ * MPEG-1/2 demuxer
33 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -287,7 +287,7 @@ redo: · 281 unmodified lines
287287 goto error_redo;
288288 c = avio_r8(s->pb);
289289 len--;
290− /* XXX: for mpeg1, should test only bit 7 */
290+ /* XXX: for MPEG-1, should test only bit 7 */
291291 if (c != 0xff)
292292 break;
293293 }
libavformat/mpeg.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 muxer and demuxer common defines
2+ * MPEG-1/2 muxer and demuxer common defines
33 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
44 *
55 * This file is part of Libav.
libavformat/mpegenc.c+3−3
@@ -1,5 +1,5 @@
11 /*
2− * MPEG1/2 muxer
2+ * MPEG-1/2 muxer
33 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -153,7 +153,7 @@ static int put_system_header(AVFormatContext *ctx, uint8_t *buf, · 147 unmodified lines
153153 put_bits(&pb, 1, 1);
154154 } else {
155155 put_bits(&pb, 1, 0); /* variable bitrate */
156− put_bits(&pb, 1, 0); /* non constrainted bit stream */
156+ put_bits(&pb, 1, 0); /* nonconstrained bitstream */
157157 }
158158
159159 if (s->is_vcd || s->is_dvd) {
@@ -1148,7 +1148,7 @@ static int mpeg_mux_end(AVFormatContext *ctx) · 988 unmodified lines
11481148 break;
11491149 }
11501150
1151− /* End header according to MPEG1 systems standard. We do not write
1151+ /* End header according to MPEG-1 systems standard. We do not write
11521152 * it as it is usually not needed by decoders and because it
11531153 * complicates MPEG stream concatenation. */
11541154 // avio_wb32(ctx->pb, ISO_11172_END_CODE);
libavformat/mpegts.c+5−5
@@ -1,5 +1,5 @@
11 /*
2− * MPEG2 transport stream (aka DVB) demuxer
2+ * MPEG-2 transport stream (aka DVB) demuxer
33 * Copyright (c) 2002-2003 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -36,8 +36,8 @@ · 30 unmodified lines
3636 #include "mpeg.h"
3737 #include "isom.h"
3838
39−/* maximum size in which we look for synchronisation if
40− * synchronisation is lost */
39+/* maximum size in which we look for synchronization if
40+ * synchronization is lost */
4141 #define MAX_RESYNC_SIZE 65536
4242
4343 #define MAX_PES_PAYLOAD 200 * 1024
@@ -141,7 +141,7 @@ struct MpegTSContext { · 97 unmodified lines
141141 };
142142
143143 #define MPEGTS_OPTIONS \
144− { "resync_size", "Size limit for looking up a new syncronization.", offsetof(MpegTSContext, resync_size), AV_OPT_TYPE_INT, { .i64 = MAX_RESYNC_SIZE}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }
144+ { "resync_size", "Size limit for looking up a new synchronization.", offsetof(MpegTSContext, resync_size), AV_OPT_TYPE_INT, { .i64 = MAX_RESYNC_SIZE}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }
145145
146146 static const AVOption options[] = {
147147 MPEGTS_OPTIONS,
@@ -836,7 +836,7 @@ static int mpegts_push_data(MpegTSFilter *filter, · 688 unmodified lines
836836 * decide */
837837 if (pes->header[0] == 0x00 && pes->header[1] == 0x00 &&
838838 pes->header[2] == 0x01) {
839− /* it must be an mpeg2 PES stream */
839+ /* it must be an MPEG-2 PES stream */
840840 code = pes->header[3] | 0x100;
841841 av_log(pes->stream, AV_LOG_TRACE, "pid=%x pes_code=%#x\n", pes->pid,
842842 code);
libavformat/mpegts.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * MPEG2 transport stream defines
2+ * MPEG-2 transport stream defines
33 * Copyright (c) 2003 Fabrice Bellard
44 *
55 * This file is part of Libav.
libavformat/mpegtsenc.c+5−5
@@ -1,5 +1,5 @@
11 /*
2− * MPEG2 transport stream (aka DVB) muxer
2+ * MPEG-2 transport stream (aka DVB) muxer
33 * Copyright (c) 2003 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -48,7 +48,7 @@ typedef struct MpegTSSection { · 42 unmodified lines
4848 } MpegTSSection;
4949
5050 typedef struct MpegTSService {
51− MpegTSSection pmt; /* MPEG2 pmt table context */
51+ MpegTSSection pmt; /* MPEG-2 PMT table context */
5252 int sid; /* service ID */
5353 char *name;
5454 char *provider_name;
@@ -59,8 +59,8 @@ typedef struct MpegTSService { · 4 unmodified lines
5959
6060 typedef struct MpegTSWrite {
6161 const AVClass *av_class;
62− MpegTSSection pat; /* MPEG2 pat table */
63− MpegTSSection sdt; /* MPEG2 sdt table context */
62+ MpegTSSection pat; /* MPEG-2 PAT table */
63+ MpegTSSection sdt; /* MPEG-2 SDT table context */
6464 MpegTSService **services;
6565 int sdt_packet_count;
6666 int sdt_packet_period;
@@ -726,7 +726,7 @@ fail: · 659 unmodified lines
726726 return ret;
727727 }
728728
729−/* send SDT, PAT and PMT tables regulary */
729+/* send SDT, PAT and PMT tables regularly */
730730 static void retransmit_si_info(AVFormatContext *s)
731731 {
732732 MpegTSWrite *ts = s->priv_data;
libavformat/mxf.c+5−5
@@ -39,17 +39,17 @@ const MXFCodecUL ff_mxf_codec_uls[] = { · 38 unmodified lines
3939 { { 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 */
4040 { { 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 */
4141 { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x02,0x02,0x01,0x02,0x00 }, 13, AV_CODEC_ID_DVVIDEO }, /* DV25 IEC PAL */
42− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */
43− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed */
44− { { 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 */
42+ { { 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 */
43+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x01,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_RAWVIDEO }, /* uncompressed */
44+ { { 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 */
4545 { { 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 */
4646 { { 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 */
4747 { { 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 */
4848 { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x02,0x01,0x31,0x11,0x01 }, 14, AV_CODEC_ID_H264 }, /* H.264/MPEG-4 AVC SPS/PPS in-band */
4949 { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x00 }, 15, AV_CODEC_ID_V210 }, /* V210 */
5050 /* SoundEssenceCompression */
51− { { 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) */
52− { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, /* Uncompressed */
51+ { { 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) */
52+ { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE }, /* uncompressed */
5353 { { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x04,0x02,0x02,0x01,0x7F,0x00,0x00,0x00 }, 13, AV_CODEC_ID_PCM_S16LE },
5454 { { 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 */
5555 { { 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 */
libavformat/mxfdec.c+6−6
@@ -499,7 +499,7 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size · 498 unmodified lines
499499 partition->previous_partition);
500500 }
501501
502− /* some files don'thave FooterPartition set in every partition */
502+ /* some files don't have FooterPartition set in every partition */
503503 if (footer_partition) {
504504 if (mxf->footer_partition && mxf->footer_partition != footer_partition) {
505505 av_log(mxf->fc, AV_LOG_ERROR,
@@ -947,22 +947,22 @@ static void *mxf_resolve_strong_ref(MXFContext *mxf, UID *strong_ref, enum MXFMe · 441 unmodified lines
947947
948948 static const MXFCodecUL mxf_picture_essence_container_uls[] = {
949949 // video essence container uls
950− { { 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 */
950+ { { 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 */
951951 { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x02,0x41,0x01 }, 14, AV_CODEC_ID_DVVIDEO }, /* DV 625 25mbps */
952− { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, AV_CODEC_ID_RAWVIDEO }, /* Uncompressed Picture */
952+ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x01,0x0d,0x01,0x03,0x01,0x02,0x05,0x00,0x00 }, 14, AV_CODEC_ID_RAWVIDEO }, /* uncompressed picture */
953953 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
954954 };
955955
956956 /* EC ULs for intra-only formats */
957957 static const MXFCodecUL mxf_intra_only_essence_container_uls[] = {
958− { { 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 */
958+ { { 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 */
959959 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
960960 };
961961
962962 /* intra-only PictureEssenceCoding ULs, where no corresponding EC UL exists */
963963 static const MXFCodecUL mxf_intra_only_picture_essence_coding_uls[] = {
964964 { { 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 */
965− { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00 }, 14, AV_CODEC_ID_JPEG2000 }, /* JPEG2000 Codestream */
965+ { { 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 */
966966 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
967967 };
968968
@@ -972,7 +972,7 @@ static const MXFCodecUL mxf_sound_essence_container_uls[] = { · 3 unmodified lines
972972 { { 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 */
973973 { { 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 */
974974 { { 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 */
975− { { 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) */
975+ { { 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) */
976976 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
977977 };
978978
libavformat/mxfenc.c+6−6
@@ -1127,7 +1127,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) · 1126 unmodified lines
11271127 for (i = 0; i < mxf->edit_units_count; i++) {
11281128 int temporal_offset = 0;
11291129
1130− if (!(mxf->index_entries[i].flags & 0x33)) { // I frame
1130+ if (!(mxf->index_entries[i].flags & 0x33)) { // I-frame
11311131 mxf->last_key_index = key_index;
11321132 key_index = i;
11331133 }
@@ -1154,7 +1154,7 @@ static void mxf_write_index_table_segment(AVFormatContext *s) · 20 unmodified lines
11541154 mxf->last_key_index = key_index;
11551155 }
11561156
1157− if (!(mxf->index_entries[i].flags & 0x33) && // I frame
1157+ if (!(mxf->index_entries[i].flags & 0x33) && // I-frame
11581158 mxf->index_entries[i].flags & 0x40 && !temporal_offset)
11591159 mxf->index_entries[i].flags |= 0x80; // random access
11601160 avio_w8(pb, mxf->index_entries[i].flags);
@@ -1365,10 +1365,10 @@ static int mxf_parse_mpeg2_frame(AVFormatContext *s, AVStream *st, · 204 unmodified lines
13651365 } else if (c == 0x100) { // pic
13661366 int pict_type = (pkt->data[i+2]>>3) & 0x07;
13671367 e->temporal_ref = (pkt->data[i+1]<<2) | (pkt->data[i+2]>>6);
1368− if (pict_type == 2) { // P frame
1368+ if (pict_type == 2) { // P-frame
13691369 e->flags |= 0x22;
1370− sc->closed_gop = 0; // reset closed gop, don't matter anymore
1371− } else if (pict_type == 3) { // B frame
1370+ sc->closed_gop = 0; // reset closed GOP, don't matter anymore
1371+ } else if (pict_type == 3) { // B-frame
13721372 if (sc->closed_gop)
13731373 e->flags |= 0x13; // only backward prediction
13741374 else
@@ -1714,7 +1714,7 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket *pkt) · 339 unmodified lines
17141714 if (st->index == 0) {
17151715 if (!mxf->edit_unit_byte_count &&
17161716 (!mxf->edit_units_count || mxf->edit_units_count > EDIT_UNITS_PER_BODY) &&
1717− !(ie.flags & 0x33)) { // I frame, Gop start
1717+ !(ie.flags & 0x33)) { // I-frame, GOP start
17181718 mxf_write_klv_fill(s);
17191719 if ((err = mxf_write_partition(s, 1, 2, body_partition_key, 0)) < 0)
17201720 return err;
libavformat/nsvdec.c+4−4
@@ -56,14 +56,14 @@ · 55 unmodified lines
5656 * (that is the offset of the data table after the header).
5757 * After checking all samples from (S1) all confirms this.
5858 *
59− * Then, about NSVf[12-15], faster.nsf has 179700. When veiwing it in VLC,
59+ * Then, about NSVf[12-15], faster.nsf has 179700. When viewing it in VLC,
6060 * I noticed there was about 1 NVSs chunk/s, so I ran
6161 * strings faster.nsv | grep NSVs | wc -l
6262 * which gave me 180. That leads me to think that NSVf[12-15] might be the
6363 * file length in milliseconds.
6464 * Let's try that:
6565 * 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
66− * except for nstrailer (which doesn't have an NSVf header), it repports correct time.
66+ * except for nsvtrailer (which doesn't have an NSVf header), it reports correct time.
6767 *
6868 * nsvtrailer.nsv (S1) does not have any NSVf header, only NSVs chunks,
6969 * so the header seems to not be mandatory. (for streaming).
@@ -579,7 +579,7 @@ null_chunk_retry: · 509 unmodified lines
579579 ((auxtag >> 24) & 0x0ff),
580580 auxsize);
581581 avio_skip(pb, auxsize);
582− vsize -= auxsize + sizeof(uint16_t) + sizeof(uint32_t); /* that's becoming braindead */
582+ vsize -= auxsize + sizeof(uint16_t) + sizeof(uint32_t); /* that's becoming brain-dead */
583583 }
584584
585585 if (pb->eof_reached)
@@ -681,7 +681,7 @@ static int nsv_read_packet(AVFormatContext *s, AVPacket *pkt) · 95 unmodified lines
681681 }
682682 }
683683
684− /* this restaurant is not approvisionned :^] */
684+ /* this restaurant is not provisioned :^] */
685685 return -1;
686686 }
687687
libavformat/oggparsedirac.c+2−2
@@ -52,7 +52,7 @@ static int dirac_header(AVFormatContext *s, int idx) · 51 unmodified lines
5252 st->codecpar->profile = dsh->profile;
5353 st->codecpar->level = dsh->level;
5454
55− // dirac in ogg always stores timestamps as though the video were interlaced
55+ // Dirac in Ogg always stores timestamps as though the video were interlaced
5656 avpriv_set_pts_info(st, 64, dsh->framerate.den, 2 * dsh->framerate.num);
5757
5858 av_freep(&dsh);
@@ -60,7 +60,7 @@ static int dirac_header(AVFormatContext *s, int idx) · 1 unmodified line
6060 return 1;
6161 }
6262
63−// various undocument things: granule is signed (only for dirac!)
63+// various undocumented things: granule is signed (only for Dirac!)
6464 static uint64_t dirac_gptopts(AVFormatContext *s, int idx, uint64_t granule,
6565 int64_t *dts_out)
6666 {
libavformat/psxstr.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Sony Playstation (PSX) STR File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/rdt.c+1−1
@@ -44,7 +44,7 @@ struct RDTDemuxContext { · 43 unmodified lines
4444 * in the AVFormatContext, and this variable points to the offset in
4545 * that array such that the first is the first stream of this set. */
4646 AVStream **streams;
47− int n_streams; /**< streams with identifical content in this set */
47+ int n_streams; /**< streams with identical content in this set */
4848 void *dynamic_protocol_context;
4949 DynamicPayloadPacketHandlerProc parse_packet;
5050 uint32_t prev_timestamp;
libavformat/rl2.c+1−1
@@ -104,7 +104,7 @@ static av_cold int rl2_read_header(AVFormatContext *s) · 103 unmodified lines
104104 if(back_size > INT_MAX/2 || frame_count > INT_MAX / sizeof(uint32_t))
105105 return AVERROR_INVALIDDATA;
106106
107− avio_skip(pb, 2); /* encoding mentod */
107+ avio_skip(pb, 2); /* encoding method */
108108 sound_rate = avio_rl16(pb);
109109 rate = avio_rl16(pb);
110110 channels = avio_rl16(pb);
libavformat/rmenc.c+4−4
@@ -258,9 +258,9 @@ static int rv10_write_header(AVFormatContext *ctx, · 257 unmodified lines
258258 avio_wb16(s, (int) stream->frame_rate); /* unknown meaning */
259259 avio_wb32(s,0); /* unknown meaning */
260260 avio_wb16(s, 8); /* unknown meaning */
261− /* Seems to be the codec version: only use basic H263. The next
262− versions seems to add a diffential DC coding as in
263− MPEG... nothing new under the sun */
261+ /* Seems to be the codec version: only use basic H.263. The next
262+ versions seems to add a differential DC coding as in
263+ MPEG... nothing new under the sun. */
264264 if(stream->par->codec_id == AV_CODEC_ID_RV10)
265265 avio_wb32(s,0x10000000);
266266 else
@@ -397,7 +397,7 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int · 130 unmodified lines
397397 write_packet_header(s, stream, size + 7 + (size >= 0x4000)*4, key_frame);
398398 /* bit 7: '1' if final packet of a frame converted in several packets */
399399 avio_w8(pb, 0x81);
400− /* bit 7: '1' if I frame. bits 6..0 : sequence number in current
400+ /* bit 7: '1' if I-frame. bits 6..0 : sequence number in current
401401 frame starting from 1 */
402402 if (key_frame) {
403403 avio_w8(pb, 0x81);
libavformat/rtmphttp.c+1−1
@@ -129,7 +129,7 @@ static int rtmp_http_read(URLContext *h, uint8_t *buf, int size) · 128 unmodified lines
129129 } else {
130130 if (rt->nb_bytes_read == 0) {
131131 /* Wait 50ms before retrying to read a server reply in
132− * order to reduce the number of idle requets. */
132+ * order to reduce the number of idle requests. */
133133 av_usleep(50000);
134134 }
135135
libavformat/rtmpproto.c+5−5
@@ -451,7 +451,7 @@ static int read_connect(URLContext *s, RTMPContext *rt) · 450 unmodified lines
451451 tmpstr, rt->app);
452452 ff_rtmp_packet_destroy(&pkt);
453453
454− // Send Window Acknowledgement Size (as defined in speficication)
454+ // Send Window Acknowledgement Size (as defined in specification)
455455 if ((ret = ff_rtmp_packet_create(&pkt, RTMP_NETWORK_CHANNEL,
456456 RTMP_PT_SERVER_BW, 0, 4)) < 0)
457457 return ret;
@@ -581,7 +581,7 @@ static int gen_release_stream(URLContext *s, RTMPContext *rt) · 123 unmodified lines
581581
582582 /**
583583 * Generate 'FCPublish' call and send it to the server. It should make
584− * the server preapare for receiving media streams.
584+ * the server prepare for receiving media streams.
585585 */
586586 static int gen_fcpublish_stream(URLContext *s, RTMPContext *rt)
587587 {
@@ -1994,7 +1994,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt) · 1406 unmodified lines
19941994 * successful response, we will return set the value to number (otherwise number
19951995 * will not be changed).
19961996 *
1997− * @return 0 if reading the value succeeds, negative value otherwiss
1997+ * @return 0 if reading the value succeeds, negative value otherwise
19981998 */
19991999 static int read_number_result(RTMPPacket *pkt, double *number)
20002000 {
@@ -2017,7 +2017,7 @@ static int read_number_result(RTMPPacket *pkt, double *number) · 16 unmodified lines
20172017 // Value 3/4: Null
20182018 if (ff_amf_read_null(&gbc))
20192019 return AVERROR_INVALIDDATA;
2020− // Value 4/4: The resonse as AMF_NUMBER
2020+ // Value 4/4: The response as AMF_NUMBER
20212021 if (ff_amf_read_number(&gbc, &numbuffer))
20222022 return AVERROR_INVALIDDATA;
20232023 else
@@ -2508,7 +2508,7 @@ static int rtmp_close(URLContext *h) · 484 unmodified lines
25082508 */
25092509 static int inject_fake_duration_metadata(RTMPContext *rt)
25102510 {
2511− // We need to insert the metdata packet directly after the FLV
2511+ // We need to insert the metadata packet directly after the FLV
25122512 // header, i.e. we need to move all other already read data by the
25132513 // size of our fake metadata packet.
25142514
libavformat/rtpdec.c+1−1
@@ -496,7 +496,7 @@ int ff_rtp_send_rtcp_feedback(RTPDemuxContext *s, URLContext *fd, · 495 unmodified lines
496496
497497 /**
498498 * open a new RTP parse context for stream 'st'. 'st' can be NULL for
499− * MPEG2-TS streams.
499+ * MPEG-2 TS streams.
500500 */
501501 RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st,
502502 int payload_type, int queue_size)
libavformat/rtpdec_h263_rfc2190.c+1−1
@@ -107,7 +107,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data, · 106 unmodified lines
107107 /* Invalid src for this format, and bits that should be zero
108108 * according to RFC 2190 aren't zero. */
109109 av_log(ctx, AV_LOG_WARNING,
110− "Interpreting H263 RTP data as RFC 2429/4629 even though "
110+ "Interpreting H.263 RTP data as RFC 2429/4629 even though "
111111 "signalled with a static payload type.\n");
112112 data->newformat = 1;
113113 return ff_h263_handle_packet(ctx, data, st, pkt, timestamp, buf,
libavformat/rtpdec_h264.c+5−5
@@ -1,5 +1,5 @@
11 /*
2− * RTP H264 Protocol (RFC3984)
2+ * RTP H.264 Protocol (RFC3984)
33 * Copyright (c) 2006 Ryan Martell
44 *
55 * This file is part of Libav.
@@ -285,7 +285,7 @@ static int h264_handle_packet_fu_a(AVFormatContext *ctx, AVPacket *pkt, · 279 unmodified lines
285285 uint8_t fu_indicator, fu_header, start_bit, nal_type, nal;
286286
287287 if (len < 3) {
288− av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H264 RTP packet\n");
288+ av_log(ctx, AV_LOG_ERROR, "Too short data for FU-A H.264 RTP packet\n");
289289 return AVERROR_INVALIDDATA;
290290 }
291291
@@ -315,14 +315,14 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, · 23 unmodified lines
315315 int result = 0;
316316
317317 if (!len) {
318− av_log(ctx, AV_LOG_ERROR, "Empty H264 RTP packet\n");
318+ av_log(ctx, AV_LOG_ERROR, "Empty H.264 RTP packet\n");
319319 return AVERROR_INVALIDDATA;
320320 }
321321 nal = buf[0];
322322 type = nal & 0x1f;
323323
324− /* Simplify the case (these are all the nal types used internally by
325− * the h264 codec). */
324+ /* Simplify the case (these are all the NAL types used internally by
325+ * the H.264 codec). */
326326 if (type >= 1 && type <= 23)
327327 type = 1;
328328 switch (type) {
libavformat/rtpdec_mpeg4.c+2−2
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323 /**
2424 * @file
25− * @brief MPEG4 / RTP Code
25+ * @brief MPEG-4 / RTP Code
2626 * @author Fabrice Bellard
2727 * @author Romain Degez
2828 */
@@ -136,7 +136,7 @@ static int rtp_parse_mp4_au(PayloadContext *data, const uint8_t *buf, int len) · 107 unmodified lines
136136
137137 init_get_bits(&getbitcontext, buf, data->au_headers_length_bytes * 8);
138138
139− /* XXX: Wrong if optionnal additional sections are present (cts, dts etc...) */
139+ /* XXX: Wrong if optional additional sections are present (cts, dts etc...) */
140140 au_header_size = data->sizelength + data->indexlength;
141141 if (au_header_size <= 0 || (au_headers_length % au_header_size != 0))
142142 return -1;
libavformat/rtpdec_qt.c+1−1
@@ -93,7 +93,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, · 92 unmodified lines
9393 if (pos + 12 > len)
9494 return AVERROR_INVALIDDATA;
9595
96− skip_bits(&gb, 2); // has non-I frames:1, is sparse:1
96+ skip_bits(&gb, 2); // has non-I-frames:1, is sparse:1
9797 is_start = get_bits1(&gb);
9898 is_finish = get_bits1(&gb);
9999 if (!is_start || !is_finish) {
libavformat/rtpdec_vp8.c+1−1
@@ -46,7 +46,7 @@ struct PayloadContext { · 45 unmodified lines
4646 int prev_pictureid;
4747 int broken_frame;
4848 /* If sequence_dirty is set, we have lost some data (critical or
49− * non-critical) and decoding will have some sort of artefacts, and
49+ * non-critical) and decoding will have some sort of artifacts, and
5050 * we thus should request a new keyframe.
5151 */
5252 int sequence_dirty;
libavformat/rtpenc.c+2−2
@@ -173,7 +173,7 @@ static int rtp_write_header(AVFormatContext *s1) · 172 unmodified lines
173173 case AV_CODEC_ID_H261:
174174 if (s1->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
175175 av_log(s, AV_LOG_ERROR,
176− "Packetizing H261 is experimental and produces incorrect "
176+ "Packetizing H.261 is experimental and produces incorrect "
177177 "packetization for cases where GOBs don't fit into packets "
178178 "(even though most receivers may handle it just fine). "
179179 "Please set -f_strict experimental in order to enable it.\n");
@@ -189,7 +189,7 @@ static int rtp_write_header(AVFormatContext *s1) · 9 unmodified lines
189189 break;
190190 case AV_CODEC_ID_HEVC:
191191 /* Only check for the standardized hvcC version of extradata, keeping
192− * things simple and similar to the avcC/H264 case above, instead
192+ * things simple and similar to the avcC/H.264 case above, instead
193193 * of trying to handle the pre-standardization versions (as in
194194 * libavcodec/hevc.c). */
195195 if (st->codecpar->extradata_size > 21 && st->codecpar->extradata[0] == 1) {
libavformat/rtpenc.h+1−1
@@ -76,7 +76,7 @@ typedef struct RTPMuxContext RTPMuxContext; · 75 unmodified lines
7676 { "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" }, \
7777 { "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" }, \
7878 { "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" }, \
79− { "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" }, \
79+ { "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" }, \
8080 { "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" } \
8181
8282 void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m);
libavformat/rtpenc_h261.c+2−2
@@ -72,12 +72,12 @@ void ff_rtp_send_h261(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_ · 71 unmodified lines
7272 rtp_ctx->buf[2] = 0; /* quant=0, hmvd=5 */
7373 rtp_ctx->buf[3] = 0; /* vmvd=0 */
7474 if (frame_size < 2 || frame_buf[0] != 0 || frame_buf[1] != 1) {
75− /* A full, correct fix for this would be to make the H261 encoder
75+ /* A full, correct fix for this would be to make the H.261 encoder
7676 * support inserting extra GOB headers (triggered by setting e.g.
7777 * "-ps 1"), and including information about macroblock boundaries
7878 * (such as for h263_rfc2190). */
7979 av_log(ctx, AV_LOG_WARNING,
80− "RTP/H261 packet not cut at a GOB boundary, not signaled correctly\n");
80+ "RTP/H.261 packet not cut at a GOB boundary, not signaled correctly\n");
8181 }
8282
8383 cur_frame_size = FFMIN(rtp_ctx->max_payload_size - RTP_H261_HEADER_SIZE, frame_size);
libavformat/rtpenc_h263_rfc2190.c+3−3
@@ -114,7 +114,7 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size, · 113 unmodified lines
114114 init_get_bits(&gb, buf, size*8);
115115 if (get_bits(&gb, 22) == 0x20) { /* Picture Start Code */
116116 info.tr = get_bits(&gb, 8);
117− skip_bits(&gb, 2); /* PTYPE start, H261 disambiguation */
117+ skip_bits(&gb, 2); /* PTYPE start, H.261 disambiguation */
118118 skip_bits(&gb, 3); /* Split screen, document camera, freeze picture release */
119119 info.src = get_bits(&gb, 3);
120120 info.i = get_bits(&gb, 1);
@@ -165,11 +165,11 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size, · 44 unmodified lines
165165 mb_info_pos++;
166166 } else {
167167 av_log(s1, AV_LOG_ERROR,
168− "Unable to split H263 packet, use -mb_info %d "
168+ "Unable to split H.263 packet, use -mb_info %d "
169169 "or lower.\n", s->max_payload_size - 8);
170170 }
171171 } else {
172− av_log(s1, AV_LOG_ERROR, "Unable to split H263 packet, "
172+ av_log(s1, AV_LOG_ERROR, "Unable to split H.263 packet, "
173173 "use -mb_info %d or -ps 1.\n",
174174 s->max_payload_size - 8);
175175 }
libavformat/rtpenc_jpeg.c+1−1
@@ -57,7 +57,7 @@ void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size) · 56 unmodified lines
5757 return;
5858 }
5959
60− /* preparse the header for getting some infos */
60+ /* preparse the header for getting some info */
6161 for (i = 0; i < size; i++) {
6262 if (buf[i] != 0xff)
6363 continue;
libavformat/rtpenc_xiph.c+1−1
@@ -67,7 +67,7 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size) · 66 unmodified lines
6767 // 0 - whole frame (possibly multiple frames)
6868 // 1 - first fragment
6969 // 2 - fragment continuation
70− // 3 - last fragmement
70+ // 3 - last fragment
7171 frag = size <= max_pkt_size ? 0 : 1;
7272
7373 if (!frag && !xdt) { // do we have a whole frame of raw data?
libavformat/sdp.c+1−1
@@ -261,7 +261,7 @@ static char *extradata2psets_hevc(AVCodecParameters *par) · 260 unmodified lines
261261 goto err;
262262 nalu_type = extradata[pos] & 0x3f;
263263 // Not including libavcodec/hevc.h to avoid confusion between
264− // NAL_* with the same name for both H264 and HEVC.
264+ // NAL_* with the same name for both H.264 and HEVC.
265265 if (nalu_type == 32) // VPS
266266 ps_pos[0] = pos;
267267 else if (nalu_type == 33) // SPS
libavformat/segafilm.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Sega FILM Format (CPK) Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/sierravmd.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Sierra VMD Format Demuxer
3− * Copyright (c) 2004 The ffmpeg Project
3+ * Copyright (c) 2004 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/spdif.h+2−2
@@ -53,8 +53,8 @@ enum IEC61937DataType { · 52 unmodified lines
5353
5454 static const uint16_t spdif_mpeg_pkt_offset[2][3] = {
5555 //LAYER1 LAYER2 LAYER3
56− { 3072, 9216, 4608 }, // MPEG2 LSF
57− { 1536, 4608, 4608 }, // MPEG1
56+ { 3072, 9216, 4608 }, // MPEG-2 LSF
57+ { 1536, 4608, 4608 }, // MPEG-1
5858 };
5959
6060 void ff_spdif_bswap_buf16(uint16_t *dst, const uint16_t *src, int w);
libavformat/spdifenc.c+4−4
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 /*
3333 * Terminology used in specification:
3434 * data-burst - IEC61937 frame, contains header and encapsuled frame
35− * burst-preambule - IEC61937 frame header, contains 16-bits words named Pa, Pb, Pc and Pd
35+ * burst-preamble - IEC61937 frame header, contains 16-bit words named Pa, Pb, Pc and Pd
3636 * burst-payload - encapsuled frame
3737 * Pa, Pb - syncword - 0xF872, 0x4E1F
3838 * 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) · 108 unmodified lines
147147 * DTS type IV (DTS-HD) can be transmitted with various frame repetition
148148 * periods; longer repetition periods allow for longer packets and therefore
149149 * higher bitrate. Longer repetition periods mean that the constant bitrate of
150− * the outputted IEC 61937 stream is higher.
150+ * the output IEC 61937 stream is higher.
151151 * The repetition period is measured in IEC 60958 frames (4 bytes).
152152 */
153153 static int spdif_dts4_subtype(int period)
@@ -319,8 +319,8 @@ static int spdif_header_dts(AVFormatContext *s, AVPacket *pkt) · 165 unmodified lines
319319
320320 static const enum IEC61937DataType mpeg_data_type[2][3] = {
321321 // LAYER1 LAYER2 LAYER3
322− { IEC61937_MPEG2_LAYER1_LSF, IEC61937_MPEG2_LAYER2_LSF, IEC61937_MPEG2_LAYER3_LSF },//MPEG2 LSF
323− { IEC61937_MPEG1_LAYER1, IEC61937_MPEG1_LAYER23, IEC61937_MPEG1_LAYER23 }, //MPEG1
322+ { IEC61937_MPEG2_LAYER1_LSF, IEC61937_MPEG2_LAYER2_LSF, IEC61937_MPEG2_LAYER3_LSF }, // MPEG-2 LSF
323+ { IEC61937_MPEG1_LAYER1, IEC61937_MPEG1_LAYER23, IEC61937_MPEG1_LAYER23 }, // MPEG-1
324324 };
325325
326326 static int spdif_header_mpeg(AVFormatContext *s, AVPacket *pkt)
libavformat/url.h+1−1
@@ -234,7 +234,7 @@ int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles); · 233 unmodified lines
234234 int ffurl_shutdown(URLContext *h, int flags);
235235
236236 /**
237− * Check if the user has requested to interrup a blocking function
237+ * Check if the user has requested to interrupt a blocking function
238238 * associated with cb.
239239 */
240240 int ff_check_interrupt(AVIOInterruptCB *cb);
libavformat/wc3movie.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Wing Commander III Movie (.mve) File Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/westwood_aud.c+1−1
@@ -1,6 +1,6 @@
11 /*
22 * Westwood Studios AUD Format Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
libavformat/westwood_vqa.c+2−2
@@ -1,6 +1,6 @@
11 /*
22 * Westwood Studios VQA Format Demuxer
3− * Copyright (c) 2003 The ffmpeg Project
3+ * Copyright (c) 2003 The FFmpeg project
44 *
55 * This file is part of Libav.
66 *
@@ -136,7 +136,7 @@ static int wsvqa_read_header(AVFormatContext *s) · 129 unmodified lines
136136 chunk_tag = AV_RB32(&scratch[0]);
137137 chunk_size = AV_RB32(&scratch[4]);
138138
139− /* catch any unknown header tags, for curiousity */
139+ /* catch any unknown header tags, for curiosity */
140140 switch (chunk_tag) {
141141 case CINF_TAG:
142142 case CINH_TAG:
libavformat/wtv.c+2−2
@@ -38,7 +38,7 @@ · 37 unmodified lines
3838 #include "asf.h"
3939 #include "mpegts.h"
4040
41−/* Macros for formating GUIDs */
41+/* Macros for formatting GUIDs */
4242 #define PRI_PRETTY_GUID \
4343 "%08"PRIx32"-%04"PRIx16"-%04"PRIx16"-%02x%02x%02x%02x%02x%02x%02x%02x"
4444 #define ARG_PRETTY_GUID(g) \
@@ -328,7 +328,7 @@ typedef struct WtvContext { · 283 unmodified lines
328328 AVIOContext *pb; /** timeline file */
329329 int64_t epoch;
330330 int64_t pts; /** pts for next data chunk */
331− int64_t last_valid_pts; /** latest valid pts, used for interative seeking */
331+ int64_t last_valid_pts; /** latest valid pts, used for interactive seeking */
332332
333333 /* maintain private seek index, as the AVIndexEntry->pos is relative to the
334334 start of the 'timeline' file, not the file system (AVFormatContext->pb) */
libavresample/dither.h+2−2
@@ -37,8 +37,8 @@ typedef struct DitherDSPContext { · 36 unmodified lines
3737 */
3838 void (*quantize)(int16_t *dst, const float *src, float *dither, int len);
3939
40− int ptr_align; ///< src and dst constraits for quantize()
41− int samples_align; ///< len constraits for quantize()
40+ int ptr_align; ///< src and dst constraints for quantize()
41+ int samples_align; ///< len constraints for quantize()
4242
4343 /**
4444 * Convert dither noise from int to float with triangular distribution.
libavresample/resample.c+1−1
@@ -46,7 +46,7 @@ · 45 unmodified lines
4646 #include "resample_template.c"
4747
4848
49−/* 0th order modified bessel function of the first kind. */
49+/* 0th order modified Bessel function of the first kind. */
5050 static double bessel(double x)
5151 {
5252 double v = 1;
libavutil/avassert.h+1−1
@@ -45,7 +45,7 @@ · 44 unmodified lines
4545
4646 /**
4747 * assert() equivalent, that does not lie in speed critical code.
48− * These asserts() thus can be enabled without fearing speedloss.
48+ * These asserts() thus can be enabled without fearing speed loss.
4949 */
5050 #if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
5151 #define av_assert1(cond) av_assert0(cond)
libavutil/avr32/intreadwrite.h+1−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727
2828 /*
2929 * AVR32 does not support unaligned memory accesses, except for the AP
30− * series which suppports unaligned 32-bit loads and stores. 16-bit
30+ * series which supports unaligned 32-bit loads and stores. 16-bit
3131 * and 64-bit accesses must be aligned to 16 and 32 bits, respectively.
3232 * This means we cannot use the byte-swapping load/store instructions
3333 * here.
libavutil/avutil.h+1−1
@@ -260,7 +260,7 @@ enum AVPictureType { · 259 unmodified lines
260260 AV_PICTURE_TYPE_I = 1, ///< Intra
261261 AV_PICTURE_TYPE_P, ///< Predicted
262262 AV_PICTURE_TYPE_B, ///< Bi-dir predicted
263− AV_PICTURE_TYPE_S, ///< S(GMC)-VOP MPEG4
263+ AV_PICTURE_TYPE_S, ///< S(GMC)-VOP MPEG-4
264264 AV_PICTURE_TYPE_SI, ///< Switching Intra
265265 AV_PICTURE_TYPE_SP, ///< Switching Predicted
266266 AV_PICTURE_TYPE_BI, ///< BI type
libavutil/dict.h+1−1
@@ -61,7 +61,7 @@ · 60 unmodified lines
6161 #define AV_DICT_DONT_STRDUP_KEY 4 /**< Take ownership of a key that's been
6262 allocated with av_malloc() and children. */
6363 #define AV_DICT_DONT_STRDUP_VAL 8 /**< Take ownership of a value that's been
64− allocated with av_malloc() and chilren. */
64+ allocated with av_malloc() and children. */
6565 #define AV_DICT_DONT_OVERWRITE 16 ///< Don't overwrite existing entries.
6666 #define AV_DICT_APPEND 32 /**< If the entry already exists, append to it. Note that no
6767 delimiter is added, the strings are simply concatenated. */
libavutil/frame.h+1−1
@@ -269,7 +269,7 @@ typedef struct AVFrame { · 268 unmodified lines
269269 int palette_has_changed;
270270
271271 /**
272− * reordered opaque 64bit (generally an integer or a double precision float
272+ * reordered opaque 64 bits (generally an integer or a double precision float
273273 * PTS but can be anything).
274274 * The user sets AVCodecContext.reordered_opaque to represent the input at
275275 * that time,
libavutil/hwcontext.h+2−2
@@ -169,7 +169,7 @@ typedef struct AVHWFramesContext { · 168 unmodified lines
169169 * A pool from which the frames are allocated by av_hwframe_get_buffer().
170170 * This field may be set by the caller before calling av_hwframe_ctx_init().
171171 * The buffers returned by calling av_buffer_pool_get() on this pool must
172− * have the properties described in the documentation in the correponding hw
172+ * have the properties described in the documentation in the corresponding hw
173173 * type's header (hwcontext_*.h). The pool will be freed strictly before
174174 * this struct's free() callback is invoked.
175175 *
@@ -377,7 +377,7 @@ void *av_hwdevice_hwconfig_alloc(AVBufferRef *device_ctx); · 201 unmodified lines
377377 /**
378378 * Get the constraints on HW frames given a device and the HW-specific
379379 * configuration to be used with that device. If no HW-specific
380− * confgiuration is provided, returns the maximum possible capabilities
380+ * configuration is provided, returns the maximum possible capabilities
381381 * of the device.
382382 *
383383 * @param device_ctx a reference to the associated AVHWDeviceContext.
libavutil/md5.c+1−1
@@ -8,7 +8,7 @@ · 7 unmodified lines
88 *
99 * based on http://ubiqx.org/libcifs/source/Auth/MD5.c
1010 * from Christopher R. Hertel (crh@ubiqx.mn.org)
11− * Simplified, cleaned and IMO redundant comments removed by michael.
11+ * Simplified, cleaned and IMO redundant comments removed by Michael.
1212 *
1313 * If you use gcc, then version 4.1 or later and -fomit-frame-pointer is
1414 * strongly recommended.
libavutil/opt.h+1−1
@@ -270,7 +270,7 @@ typedef struct AVOption { · 269 unmodified lines
270270 #define AV_OPT_FLAG_VIDEO_PARAM 16
271271 #define AV_OPT_FLAG_SUBTITLE_PARAM 32
272272 /**
273− * The option is inteded for exporting values to the caller.
273+ * The option is intended for exporting values to the caller.
274274 */
275275 #define AV_OPT_FLAG_EXPORT 64
276276 /**
libavutil/pixfmt.h+11−11
@@ -50,7 +50,7 @@ · 49 unmodified lines
5050 * to run on the IBM VGA graphics adapter use 6-bit palette components.
5151 *
5252 * @par
53− * For all the 8bit per pixel formats, an RGB32 palette is in data[1] like
53+ * For all the 8 bits per pixel formats, an RGB32 palette is in data[1] like
5454 * for pal8. This palette is filled in automatically by the function
5555 * allocating the picture.
5656 */
@@ -67,7 +67,7 @@ enum AVPixelFormat { · 10 unmodified lines
6767 AV_PIX_FMT_GRAY8, ///< Y , 8bpp
6868 AV_PIX_FMT_MONOWHITE, ///< Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb
6969 AV_PIX_FMT_MONOBLACK, ///< Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb
70− AV_PIX_FMT_PAL8, ///< 8 bit with AV_PIX_FMT_RGB32 palette
70+ AV_PIX_FMT_PAL8, ///< 8 bits with AV_PIX_FMT_RGB32 palette
7171 AV_PIX_FMT_YUVJ420P, ///< planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting color_range
7272 AV_PIX_FMT_YUVJ422P, ///< planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting color_range
7373 AV_PIX_FMT_YUVJ444P, ///< planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting color_range
@@ -132,7 +132,7 @@ enum AVPixelFormat { · 58 unmodified lines
132132 AV_PIX_FMT_YUV444P16LE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
133133 AV_PIX_FMT_YUV444P16BE, ///< planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
134134 #if FF_API_VDPAU
135− AV_PIX_FMT_VDPAU_MPEG4, ///< MPEG4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
135+ AV_PIX_FMT_VDPAU_MPEG4, ///< MPEG-4 HW decoding with VDPAU, data[0] contains a vdpau_render_state struct which contains the bitstream of the slices as well as various fields extracted from headers
136136 #endif
137137 AV_PIX_FMT_DXVA2_VLD, ///< HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer
138138
@@ -140,7 +140,7 @@ enum AVPixelFormat { · 1 unmodified line
140140 AV_PIX_FMT_RGB444BE, ///< packed RGB 4:4:4, 16bpp, (msb)4A 4R 4G 4B(lsb), big-endian, most significant bits to 0
141141 AV_PIX_FMT_BGR444LE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most significant bits to 1
142142 AV_PIX_FMT_BGR444BE, ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), big-endian, most significant bits to 1
143− AV_PIX_FMT_YA8, ///< 8bit gray, 8bit alpha
143+ AV_PIX_FMT_YA8, ///< 8 bits gray, 8 bits alpha
144144
145145 AV_PIX_FMT_Y400A = AV_PIX_FMT_YA8, ///< alias for AV_PIX_FMT_YA8
146146
@@ -202,8 +202,8 @@ enum AVPixelFormat { · 55 unmodified lines
202202
203203 AV_PIX_FMT_VDA, ///< HW acceleration through VDA, data[3] contains a CVPixelBufferRef
204204
205− AV_PIX_FMT_YA16BE, ///< 16bit gray, 16bit alpha (big-endian)
206− AV_PIX_FMT_YA16LE, ///< 16bit gray, 16bit alpha (little-endian)
205+ AV_PIX_FMT_YA16BE, ///< 16 bits gray, 16 bits alpha (big-endian)
206+ AV_PIX_FMT_YA16LE, ///< 16 bits gray, 16 bits alpha (little-endian)
207207
208208 AV_PIX_FMT_GBRAP, ///< planar GBRA 4:4:4:4 32bpp
209209 AV_PIX_FMT_GBRAP16BE, ///< planar GBRA 4:4:4:4 64bpp, big-endian
@@ -320,9 +320,9 @@ enum AVColorTransferCharacteristic { · 110 unmodified lines
320320 AVCOL_TRC_IEC61966_2_4 = 11, ///< IEC 61966-2-4
321321 AVCOL_TRC_BT1361_ECG = 12, ///< ITU-R BT1361 Extended Colour Gamut
322322 AVCOL_TRC_IEC61966_2_1 = 13, ///< IEC 61966-2-1 (sRGB or sYCC)
323− AVCOL_TRC_BT2020_10 = 14, ///< ITU-R BT2020 for 10 bit system
324− AVCOL_TRC_BT2020_12 = 15, ///< ITU-R BT2020 for 12 bit system
325− AVCOL_TRC_SMPTEST2084 = 16, ///< SMPTE ST 2084 for 10, 12, 14 and 16 bit systems
323+ AVCOL_TRC_BT2020_10 = 14, ///< ITU-R BT2020 for 10-bit system
324+ AVCOL_TRC_BT2020_12 = 15, ///< ITU-R BT2020 for 12-bit system
325+ AVCOL_TRC_SMPTEST2084 = 16, ///< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems
326326 AVCOL_TRC_SMPTEST428_1 = 17, ///< SMPTE ST 428-1
327327 AVCOL_TRC_NB, ///< Not part of ABI
328328 };
@@ -364,8 +364,8 @@ enum AVColorRange { · 35 unmodified lines
364364 */
365365 enum AVChromaLocation {
366366 AVCHROMA_LOC_UNSPECIFIED = 0,
367− AVCHROMA_LOC_LEFT = 1, ///< mpeg2/4, h264 default
368− AVCHROMA_LOC_CENTER = 2, ///< mpeg1, jpeg, h263
367+ AVCHROMA_LOC_LEFT = 1, ///< MPEG-2/4, H.264 default
368+ AVCHROMA_LOC_CENTER = 2, ///< MPEG-1, JPEG, H.263
369369 AVCHROMA_LOC_TOPLEFT = 3, ///< DV
370370 AVCHROMA_LOC_TOP = 4,
371371 AVCHROMA_LOC_BOTTOMLEFT = 5,
libavutil/random_seed.c+1−1
@@ -79,7 +79,7 @@ static uint32_t get_generic_seed(void) · 78 unmodified lines
7979 if (!sha) {
8080 uint32_t seed = 0;
8181 int j;
82− // Unable to allocate an sha context, just xor the buffer together
82+ // Unable to allocate an SHA context, just XOR the buffer together
8383 // to create something hopefully unique.
8484 for (j = 0; j < 512; j++)
8585 seed ^= buffer[j];
libavutil/x86/cpu.c+1−1
@@ -180,7 +180,7 @@ int ff_get_cpu_flags_x86(void) · 179 unmodified lines
180180
181181 /* Similar to the above but for AVX functions on AMD processors.
182182 This is necessary only for functions using YMM registers on Bulldozer
183− based CPUs as they lack 256-bits execution units. SSE/AVX functions
183+ based CPUs as they lack 256-bit execution units. SSE/AVX functions
184184 using XMM registers are always faster on them.
185185 AV_CPU_FLAG_AVX and AV_CPU_FLAG_AVXSLOW are both set so that AVX is
186186 used unless explicitly disabled by checking AV_CPU_FLAG_AVXSLOW.
libswscale/output.c+5−5
@@ -612,7 +612,7 @@ yuv2rgb48_X_c_template(SwsContext *c, const int16_t *lumFilter, · 611 unmodified lines
612612 V += chrVSrc[j][i] * chrFilter[j];
613613 }
614614
615− // 8bit: 12+15=27; 16-bit: 12+19=31
615+ // 8 bits: 12+15=27; 16 bits: 12+19=31
616616 Y1 >>= 14; // 10
617617 Y1 += 0x10000;
618618 Y2 >>= 14;
@@ -620,20 +620,20 @@ yuv2rgb48_X_c_template(SwsContext *c, const int16_t *lumFilter, · 1 unmodified line
620620 U >>= 14;
621621 V >>= 14;
622622
623− // 8bit: 27 -> 17bit, 16bit: 31 - 14 = 17bit
623+ // 8 bits: 27 -> 17 bits, 16 bits: 31 - 14 = 17 bits
624624 Y1 -= c->yuv2rgb_y_offset;
625625 Y2 -= c->yuv2rgb_y_offset;
626626 Y1 *= c->yuv2rgb_y_coeff;
627627 Y2 *= c->yuv2rgb_y_coeff;
628628 Y1 += 1 << 13; // 21
629629 Y2 += 1 << 13;
630− // 8bit: 17 + 13bit = 30bit, 16bit: 17 + 13bit = 30bit
630+ // 8 bits: 17 + 13 bits = 30 bits, 16 bits: 17 + 13 bits = 30 bits
631631
632632 R = V * c->yuv2rgb_v2r_coeff;
633633 G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff;
634634 B = U * c->yuv2rgb_u2b_coeff;
635635
636− // 8bit: 30 - 22 = 8bit, 16bit: 30bit - 14 = 16bit
636+ // 8 bits: 30 - 22 = 8 bits, 16 bits: 30 bits - 14 = 16 bits
637637 output_pixel(&dest[0], av_clip_uintp2(R_B + Y1, 30) >> 14);
638638 output_pixel(&dest[1], av_clip_uintp2( G + Y1, 30) >> 14);
639639 output_pixel(&dest[2], av_clip_uintp2(B_R + Y1, 30) >> 14);
@@ -895,7 +895,7 @@ yuv2rgb_write(uint8_t *_dest, int i, unsigned Y1, unsigned Y2, · 255 unmodified lines
895895
896896 dest[i * 2 + 0] = r[Y1 + dr1] + g[Y1 + dg1] + b[Y1 + db1];
897897 dest[i * 2 + 1] = r[Y2 + dr2] + g[Y2 + dg2] + b[Y2 + db2];
898− } else /* 8/4-bit */ {
898+ } else /* 8/4 bits */ {
899899 uint8_t *dest = (uint8_t *) _dest;
900900 const uint8_t *r = (const uint8_t *) _r;
901901 const uint8_t *g = (const uint8_t *) _g;
libswscale/swscale.h+1−1
@@ -74,7 +74,7 @@ const char *swscale_license(void); · 73 unmodified lines
7474 #define SWS_PRINT_INFO 0x1000
7575
7676 //the following 3 flags are not completely implemented
77−//internal chrominace subsampling info
77+//internal chrominance subsampling info
7878 #define SWS_FULL_CHR_H_INT 0x2000
7979 //input subsampling info
8080 #define SWS_FULL_CHR_H_INP 0x4000
libswscale/swscale_internal.h+58−58
@@ -66,9 +66,9 @@ typedef int (*SwsFunc)(struct SwsContext *context, const uint8_t *src[], · 65 unmodified lines
6666 * Write one line of horizontally scaled data to planar output
6767 * without any additional vertical scaling (or point-scaling).
6868 *
69− * @param src scaled source data, 15bit for 8-10bit output,
70− * 19-bit for 16bit output (in int32_t)
71− * @param dest pointer to the output plane. For >8bit
69+ * @param src scaled source data, 15 bits for 8-10-bit output,
70+ * 19 bits for 16-bit output (in int32_t)
71+ * @param dest pointer to the output plane. For >8-bit
7272 * output, this is in uint16_t
7373 * @param dstW width of destination in pixels
7474 * @param dither ordered dither array of type int16_t and size 8
@@ -81,11 +81,11 @@ typedef void (*yuv2planar1_fn)(const int16_t *src, uint8_t *dest, int dstW, · 6 unmodified lines
8181 * Write one line of horizontally scaled data to planar output
8282 * with multi-point vertical scaling between input pixels.
8383 *
84− * @param filter vertical luma/alpha scaling coefficients, 12bit [0,4096]
85− * @param src scaled luma (Y) or alpha (A) source data, 15bit for 8-10bit output,
86− * 19-bit for 16bit output (in int32_t)
84+ * @param filter vertical luma/alpha scaling coefficients, 12 bits [0,4096]
85+ * @param src scaled luma (Y) or alpha (A) source data, 15 bits for
86+ * 8-10-bit output, 19 bits for 16-bit output (in int32_t)
8787 * @param filterSize number of vertical input lines to scale
88− * @param dest pointer to output plane. For >8bit
88+ * @param dest pointer to output plane. For >8-bit
8989 * output, this is in uint16_t
9090 * @param dstW width of destination pixels
9191 * @param offset Dither offset
@@ -99,13 +99,13 @@ typedef void (*yuv2planarX_fn)(const int16_t *filter, int filterSize, · 7 unmodified lines
9999 * with multi-point vertical scaling between input pixels.
100100 *
101101 * @param c SWS scaling context
102− * @param chrFilter vertical chroma scaling coefficients, 12bit [0,4096]
103− * @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
104− * 19-bit for 16bit output (in int32_t)
105− * @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
106− * 19-bit for 16bit output (in int32_t)
102+ * @param chrFilter vertical chroma scaling coefficients, 12 bits [0,4096]
103+ * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit
104+ * output, 19 bits for 16-bit output (in int32_t)
105+ * @param chrVSrc scaled chroma (V) source data, 15 bits for 8-10-bit
106+ * output, 19 bits for 16-bit output (in int32_t)
107107 * @param chrFilterSize number of vertical chroma input lines to scale
108− * @param dest pointer to the output plane. For >8bit
108+ * @param dest pointer to the output plane. For >8-bit
109109 * output, this is in uint16_t
110110 * @param dstW width of chroma planes
111111 */
@@ -122,15 +122,15 @@ typedef void (*yuv2interleavedX_fn)(struct SwsContext *c, · 10 unmodified lines
122122 * that this function may do chroma scaling, see the "uvalpha" argument.
123123 *
124124 * @param c SWS scaling context
125− * @param lumSrc scaled luma (Y) source data, 15bit for 8-10bit output,
126− * 19-bit for 16bit output (in int32_t)
127− * @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
128− * 19-bit for 16bit output (in int32_t)
129− * @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
130− * 19-bit for 16bit output (in int32_t)
131− * @param alpSrc scaled alpha (A) source data, 15bit for 8-10bit output,
132− * 19-bit for 16bit output (in int32_t)
133− * @param dest pointer to the output plane. For 16bit output, this is
125+ * @param lumSrc scaled luma (Y) source data, 15 bits for 8-10-bit output,
126+ * 19 bits for 16-bit output (in int32_t)
127+ * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit output,
128+ * 19 bits for 16-bit output (in int32_t)
129+ * @param chrVSrc scaled chroma (V) source data, 15 bits for 8-10-bit output,
130+ * 19 bits for 16-bit output (in int32_t)
131+ * @param alpSrc scaled alpha (A) source data, 15 bits for 8-10-bit output,
132+ * 19 bits for 16-bit output (in int32_t)
133+ * @param dest pointer to the output plane. For 16-bit output, this is
134134 * uint16_t
135135 * @param dstW width of lumSrc and alpSrc in pixels, number of pixels
136136 * to write into dest[]
@@ -155,15 +155,15 @@ typedef void (*yuv2packed1_fn)(struct SwsContext *c, const int16_t *lumSrc, · 18 unmodified lines
155155 * output by doing bilinear scaling between two input lines.
156156 *
157157 * @param c SWS scaling context
158− * @param lumSrc scaled luma (Y) source data, 15bit for 8-10bit output,
159− * 19-bit for 16bit output (in int32_t)
160− * @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
161− * 19-bit for 16bit output (in int32_t)
162− * @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
163− * 19-bit for 16bit output (in int32_t)
164− * @param alpSrc scaled alpha (A) source data, 15bit for 8-10bit output,
165− * 19-bit for 16bit output (in int32_t)
166− * @param dest pointer to the output plane. For 16bit output, this is
158+ * @param lumSrc scaled luma (Y) source data, 15 bits for 8-10-bit output,
159+ * 19 bits for 16-bit output (in int32_t)
160+ * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit output,
161+ * 19 bits for 16-bit output (in int32_t)
162+ * @param chrVSrc scaled chroma (V) source data, 15 bits for 8-10-bit output,
163+ * 19 bits for 16-bit output (in int32_t)
164+ * @param alpSrc scaled alpha (A) source data, 15 bits for 8-10-bit output,
165+ * 19 bits for 16-bit output (in int32_t)
166+ * @param dest pointer to the output plane. For 16-bit output, this is
167167 * uint16_t
168168 * @param dstW width of lumSrc and alpSrc in pixels, number of pixels
169169 * to write into dest[]
@@ -189,19 +189,19 @@ typedef void (*yuv2packed2_fn)(struct SwsContext *c, const int16_t *lumSrc[2], · 19 unmodified lines
189189 * output by doing multi-point vertical scaling between input pixels.
190190 *
191191 * @param c SWS scaling context
192− * @param lumFilter vertical luma/alpha scaling coefficients, 12bit [0,4096]
193− * @param lumSrc scaled luma (Y) source data, 15bit for 8-10bit output,
194− * 19-bit for 16bit output (in int32_t)
192+ * @param lumFilter vertical luma/alpha scaling coefficients, 12 bits [0,4096]
193+ * @param lumSrc scaled luma (Y) source data, 15 bits for 8-10-bit output,
194+ * 19 bits for 16-bit output (in int32_t)
195195 * @param lumFilterSize number of vertical luma/alpha input lines to scale
196− * @param chrFilter vertical chroma scaling coefficients, 12bit [0,4096]
197− * @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
198− * 19-bit for 16bit output (in int32_t)
199− * @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
200− * 19-bit for 16bit output (in int32_t)
196+ * @param chrFilter vertical chroma scaling coefficients, 12 bits [0,4096]
197+ * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit output,
198+ * 19 bits for 16-bit output (in int32_t)
199+ * @param chrVSrc scaled chroma (V) source data, 15 bits for 8-10-bit output,
200+ * 19 bits for 16-bit output (in int32_t)
201201 * @param chrFilterSize number of vertical chroma input lines to scale
202− * @param alpSrc scaled alpha (A) source data, 15bit for 8-10bit output,
203− * 19-bit for 16bit output (in int32_t)
204− * @param dest pointer to the output plane. For 16bit output, this is
202+ * @param alpSrc scaled alpha (A) source data, 15 bits for 8-10-bit output,
203+ * 19 bits for 16-bit output (in int32_t)
204+ * @param dest pointer to the output plane. For 16-bit output, this is
205205 * uint16_t
206206 * @param dstW width of lumSrc and alpSrc in pixels, number of pixels
207207 * to write into dest[]
@@ -223,19 +223,19 @@ typedef void (*yuv2packedX_fn)(struct SwsContext *c, const int16_t *lumFilter, · 15 unmodified lines
223223 * output by doing multi-point vertical scaling between input pixels.
224224 *
225225 * @param c SWS scaling context
226− * @param lumFilter vertical luma/alpha scaling coefficients, 12bit [0,4096]
227− * @param lumSrc scaled luma (Y) source data, 15bit for 8-10bit output,
228− * 19-bit for 16bit output (in int32_t)
226+ * @param lumFilter vertical luma/alpha scaling coefficients, 12 bits [0,4096]
227+ * @param lumSrc scaled luma (Y) source data, 15 bits for 8-10-bit output,
228+ * 19 bits for 16-bit output (in int32_t)
229229 * @param lumFilterSize number of vertical luma/alpha input lines to scale
230− * @param chrFilter vertical chroma scaling coefficients, 12bit [0,4096]
231− * @param chrUSrc scaled chroma (U) source data, 15bit for 8-10bit output,
232− * 19-bit for 16bit output (in int32_t)
233− * @param chrVSrc scaled chroma (V) source data, 15bit for 8-10bit output,
234− * 19-bit for 16bit output (in int32_t)
230+ * @param chrFilter vertical chroma scaling coefficients, 12 bits [0,4096]
231+ * @param chrUSrc scaled chroma (U) source data, 15 bits for 8-10-bit output,
232+ * 19 bits for 16-bit output (in int32_t)
233+ * @param chrVSrc scaled chroma (V) source data, 15 bits for 8-10-bit output,
234+ * 19 bits for 16-bit output (in int32_t)
235235 * @param chrFilterSize number of vertical chroma input lines to scale
236− * @param alpSrc scaled alpha (A) source data, 15bit for 8-10bit output,
237− * 19-bit for 16bit output (in int32_t)
238− * @param dest pointer to the output planes. For 16bit output, this is
236+ * @param alpSrc scaled alpha (A) source data, 15 bits for 8-10-bit output,
237+ * 19 bits for 16-bit output (in int32_t)
238+ * @param dest pointer to the output planes. For 16-bit output, this is
239239 * uint16_t
240240 * @param dstW width of lumSrc and alpSrc in pixels, number of pixels
241241 * to write into dest[]
@@ -471,7 +471,7 @@ typedef struct SwsContext { · 229 unmodified lines
471471 * Scale one horizontal line of input data using a bilinear filter
472472 * to produce one line of output data. Compared to SwsContext->hScale(),
473473 * please take note of the following caveats when using these:
474− * - Scaling is done using only 7bit instead of 14bit coefficients.
474+ * - Scaling is done using only 7 bits instead of 14-bit coefficients.
475475 * - You can use no more than 5 input pixels to produce 4 output
476476 * pixels. Therefore, this filter should not be used for downscaling
477477 * by more than ~20% in width (because that equals more than 5/4th
@@ -502,15 +502,15 @@ typedef struct SwsContext { · 24 unmodified lines
502502 * @param dst pointer to destination buffer for horizontally scaled
503503 * data. If the number of bits per component of one
504504 * destination pixel (SwsContext->dstBpc) is <= 10, data
505− * will be 15bpc in 16bits (int16_t) width. Else (i.e.
505+ * will be 15 bpc in 16 bits (int16_t) width. Else (i.e.
506506 * SwsContext->dstBpc == 16), data will be 19bpc in
507− * 32bits (int32_t) width.
507+ * 32 bits (int32_t) width.
508508 * @param dstW width of destination image
509509 * @param src pointer to source data to be scaled. If the number of
510510 * bits per component of a source pixel (SwsContext->srcBpc)
511− * is 8, this is 8bpc in 8bits (uint8_t) width. Else
511+ * is 8, this is 8bpc in 8 bits (uint8_t) width. Else
512512 * (i.e. SwsContext->dstBpc > 8), this is native depth
513− * in 16bits (uint16_t) width. In other words, for 9-bit
513+ * in 16 bits (uint16_t) width. In other words, for 9-bit
514514 * YUV input, this is 9bpc, for 10-bit YUV input, this is
515515 * 10bpc, and for 16-bit RGB or YUV, this is 16bpc.
516516 * @param filter filter coefficients to be used per output pixel for
libswscale/swscale_unscaled.c+1−1
@@ -943,7 +943,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], · 942 unmodified lines
943943 COPY16TO9_OR_10(AV_RL16, AV_WL16);
944944 }
945945 }
946− } else /* 8bit */ {
946+ } else /* 8 bits */ {
947947 #define COPY8TO9_OR_10(wfunc) \
948948 if (shiftonly) { \
949949 for (i = 0; i < height; i++) { \
libswscale/x86/output.asm+4−4
@@ -50,8 +50,8 @@ SECTION .text · 49 unmodified lines
5050 ; const uint8_t *dither, int offset)
5151 ;
5252 ; Scale one or $filterSize lines of source data to generate one line of output
53−; data. The input is 15-bit in int16_t if $output_size is [8,10] and 19-bit in
54−; int32_t if $output_size is 16. $filter is 12-bits. $filterSize is a multiple
53+; data. The input is 15 bits in int16_t if $output_size is [8,10] and 19 bits in
54+; int32_t if $output_size is 16. $filter is 12 bits. $filterSize is a multiple
5555 ; of 2. $offset is either 0 or 3. $dither holds 8 values.
5656 ;-----------------------------------------------------------------------------
5757
@@ -125,10 +125,10 @@ cglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, dst, w, dither, offset · 67 unmodified lines
125125
126126 .pixelloop:
127127 %assign %%i 0
128− ; the rep here is for the 8bit output mmx case, where dither covers
128+ ; the rep here is for the 8-bit output MMX case, where dither covers
129129 ; 8 pixels but we can only handle 2 pixels per register, and thus 4
130130 ; pixels per iteration. In order to not have to keep track of where
131− ; we are w.r.t. dithering, we unroll the mmx/8bit loop x2.
131+ ; we are w.r.t. dithering, we unroll the MMX/8-bit loop x2.
132132 %if %1 == 8
133133 %assign %%repcnt 16/mmsize
134134 %else
libswscale/x86/scale.asm+3−3
@@ -39,10 +39,10 @@ SECTION .text · 38 unmodified lines
3939 ; const int16_t *filter,
4040 ; const int32_t *filterPos, int filterSize);
4141 ;
42−; Scale one horizontal line. Input is either 8-bits width or 16-bits width
42+; Scale one horizontal line. Input is either 8-bit width or 16-bit width
4343 ; ($source_width can be either 8, 9, 10 or 16, difference is whether we have to
44−; downscale before multiplying). Filter is 14-bits. Output is either 15bits
45−; (in int16_t) or 19bits (in int32_t), as given in $intermediate_nbits. Each
44+; downscale before multiplying). Filter is 14 bits. Output is either 15 bits
45+; (in int16_t) or 19 bits (in int32_t), as given in $intermediate_nbits. Each
4646 ; output pixel is generated from $filterSize input pixels, the position of
4747 ; the first pixel is given in filterPos[nOutputPixel].
4848 ;-----------------------------------------------------------------------------
tests/checkasm/h264pred.c+3−3
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 static const int codec_ids[4] = { AV_CODEC_ID_H264, AV_CODEC_ID_VP8, AV_CODEC_ID_RV40, AV_CODEC_ID_SVQ3 };
3030
3131 static const char * const pred4x4_modes[4][15] = {
32− { /* H264 */
32+ { /* H.264 */
3333 [VERT_PRED ] = "vertical",
3434 [HOR_PRED ] = "horizontal",
3535 [DC_PRED ] = "dc",
@@ -65,7 +65,7 @@ static const char * const pred4x4_modes[4][15] = { · 29 unmodified lines
6565 };
6666
6767 static const char * const pred8x8_modes[4][11] = {
68− { /* H264 */
68+ { /* H.264 */
6969 [DC_PRED8x8 ] = "dc",
7070 [HOR_PRED8x8 ] = "horizontal",
7171 [VERT_PRED8x8 ] = "vertical",
@@ -92,7 +92,7 @@ static const char * const pred8x8_modes[4][11] = { · 20 unmodified lines
9292 };
9393
9494 static const char * const pred16x16_modes[4][9] = {
95− { /* H264 */
95+ { /* H.264 */
9696 [DC_PRED8x8 ] = "dc",
9797 [HOR_PRED8x8 ] = "horizontal",
9898 [VERT_PRED8x8 ] = "vertical",

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