You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

785 lines
26KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle Developer Documentation
  3. @titlepage
  4. @center @titlefont{Developer Documentation}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Developers Guide
  9. @section API
  10. @itemize @bullet
  11. @item libavcodec is the library containing the codecs (both encoding and
  12. decoding). Look at @file{doc/examples/avcodec.c} to see how to use it.
  13. @item libavformat is the library containing the file format handling (mux and
  14. demux code for several formats). Look at @file{avplay.c} to use it in a
  15. player. See @file{doc/examples/output.c} to use it to generate
  16. audio or video streams.
  17. @end itemize
  18. @section Integrating Libav in your program
  19. Shared libraries should be used whenever is possible in order to reduce
  20. the effort distributors have to pour to support programs and to ensure
  21. only the public API is used.
  22. You can use Libav in your commercial program, but you must abide to the
  23. license, LGPL or GPL depending on the specific features used, please refer
  24. to @uref{http://libav.org/legal.html, our legal page} for a quick checklist and to
  25. the following links for the exact text of each license:
  26. @uref{http://git.libav.org/?p=libav.git;a=blob;f=COPYING.GPLv2, GPL version 2},
  27. @uref{http://git.libav.org/?p=libav.git;a=blob;f=COPYING.GPLv3, GPL version 3},
  28. @uref{http://git.libav.org/?p=libav.git;a=blob;f=COPYING.LGPLv2.1, LGPL version 2.1},
  29. @uref{http://git.libav.org/?p=libav.git;a=blob;f=COPYING.LGPLv3, LGPL version 3}.
  30. Any modification to the source code can be suggested for inclusion.
  31. The best way to proceed is to send your patches to the
  32. @uref{https://lists.libav.org/mailman/listinfo/libav-devel, libav-devel}
  33. mailing list.
  34. @anchor{Coding Rules}
  35. @section Coding Rules
  36. @subsection Code formatting conventions
  37. The code is written in K&R C style. That means the following:
  38. @itemize @bullet
  39. @item
  40. The control statements are formatted by putting space between the statement
  41. and parenthesis in the following way:
  42. @example
  43. for (i = 0; i < filter->input_count; i++) @{
  44. @end example
  45. @item
  46. The case statement is always located at the same level as the switch itself:
  47. @example
  48. switch (link->init_state) @{
  49. case AVLINK_INIT:
  50. continue;
  51. case AVLINK_STARTINIT:
  52. av_log(filter, AV_LOG_INFO, "circular filter chain detected");
  53. return 0;
  54. @end example
  55. @item
  56. Braces in function definitions are written on the new line:
  57. @example
  58. const char *avfilter_configuration(void)
  59. @{
  60. return LIBAV_CONFIGURATION;
  61. @}
  62. @end example
  63. @item
  64. Do not check for NULL values by comparison, @samp{if (p)} and
  65. @samp{if (!p)} are correct; @samp{if (p == NULL)} and @samp{if (p != NULL)}
  66. are not.
  67. @item
  68. In case of a single-statement if, no curly braces are required:
  69. @example
  70. if (!pic || !picref)
  71. goto fail;
  72. @end example
  73. @item
  74. Do not put spaces immediately inside parentheses. @samp{if (ret)} is
  75. a valid style; @samp{if ( ret )} is not.
  76. @end itemize
  77. There are the following guidelines regarding the indentation in files:
  78. @itemize @bullet
  79. @item
  80. Indent size is 4.
  81. @item
  82. The TAB character is forbidden outside of Makefiles as is any
  83. form of trailing whitespace. Commits containing either will be
  84. rejected by the git repository.
  85. @item
  86. You should try to limit your code lines to 80 characters; however, do so if
  87. and only if this improves readability.
  88. @end itemize
  89. The presentation is one inspired by 'indent -i4 -kr -nut'.
  90. The main priority in Libav is simplicity and small code size in order to
  91. minimize the bug count.
  92. @subsection Comments
  93. Use the JavaDoc/Doxygen format (see examples below) so that code documentation
  94. can be generated automatically. All nontrivial functions should have a comment
  95. above them explaining what the function does, even if it is just one sentence.
  96. All structures and their member variables should be documented, too.
  97. Avoid Qt-style and similar Doxygen syntax with @code{!} in it, i.e. replace
  98. @code{//!} with @code{///} and similar. Also @@ syntax should be employed
  99. for markup commands, i.e. use @code{@@param} and not @code{\param}.
  100. @example
  101. /**
  102. * @@file
  103. * MPEG codec.
  104. * @@author ...
  105. */
  106. /**
  107. * Summary sentence.
  108. * more text ...
  109. * ...
  110. */
  111. typedef struct Foobar @{
  112. int var1; /**< var1 description */
  113. int var2; ///< var2 description
  114. /** var3 description */
  115. int var3;
  116. @} Foobar;
  117. /**
  118. * Summary sentence.
  119. * more text ...
  120. * ...
  121. * @@param my_parameter description of my_parameter
  122. * @@return return value description
  123. */
  124. int myfunc(int my_parameter)
  125. ...
  126. @end example
  127. @subsection C language features
  128. Libav is programmed in the ISO C90 language with a few additional
  129. features from ISO C99, namely:
  130. @itemize @bullet
  131. @item
  132. the @samp{inline} keyword;
  133. @item
  134. @samp{//} comments;
  135. @item
  136. designated struct initializers (@samp{struct s x = @{ .i = 17 @};})
  137. @item
  138. compound literals (@samp{x = (struct s) @{ 17, 23 @};})
  139. @end itemize
  140. These features are supported by all compilers we care about, so we will not
  141. accept patches to remove their use unless they absolutely do not impair
  142. clarity and performance.
  143. All code must compile with recent versions of GCC and a number of other
  144. currently supported compilers. To ensure compatibility, please do not use
  145. additional C99 features or GCC extensions. Especially watch out for:
  146. @itemize @bullet
  147. @item
  148. mixing statements and declarations;
  149. @item
  150. @samp{long long} (use @samp{int64_t} instead);
  151. @item
  152. @samp{__attribute__} not protected by @samp{#ifdef __GNUC__} or similar;
  153. @item
  154. GCC statement expressions (@samp{(x = (@{ int y = 4; y; @})}).
  155. @end itemize
  156. @subsection Naming conventions
  157. All names should be composed with underscores (_), not CamelCase. For example,
  158. @samp{avfilter_get_video_buffer} is an acceptable function name and
  159. @samp{AVFilterGetVideo} is not. The only exception are structure
  160. names; they should always be CamelCase.
  161. There are the following conventions for naming variables and functions:
  162. @itemize @bullet
  163. @item
  164. For local variables no prefix is required.
  165. @item
  166. For file-scope variables and functions declared as @code{static}, no prefix
  167. is required.
  168. @item
  169. For variables and functions visible outside of file scope, but only used
  170. internally by a library, an @code{ff_} prefix should be used,
  171. e.g. @samp{ff_w64_demuxer}.
  172. @item
  173. For variables and functions visible outside of file scope, used internally
  174. across multiple libraries, use @code{avpriv_} as prefix, for example,
  175. @samp{avpriv_aac_parse_header}.
  176. @item
  177. For externally visible symbols, each library has its own prefix. Check
  178. the existing code and choose names accordingly.
  179. @end itemize
  180. Furthermore, name space reserved for the system should not be invaded.
  181. Identifiers ending in @code{_t} are reserved by
  182. @url{http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html#tag_02_02_02, POSIX}.
  183. Also avoid names starting with @code{__} or @code{_} followed by an uppercase
  184. letter as they are reserved by the C standard. Names starting with @code{_}
  185. are reserved at the file level and may not be used for externally visible
  186. symbols. If in doubt, just avoid names starting with @code{_} altogether.
  187. @subsection Miscellaneous conventions
  188. @itemize @bullet
  189. @item
  190. fprintf and printf are forbidden in libavformat and libavcodec,
  191. please use av_log() instead.
  192. @item
  193. Casts should be used only when necessary. Unneeded parentheses
  194. should also be avoided if they don't make the code easier to understand.
  195. @end itemize
  196. @subsection Editor configuration
  197. In order to configure Vim to follow Libav formatting conventions, paste
  198. the following snippet into your @file{.vimrc}:
  199. @example
  200. " Indentation rules for Libav: 4 spaces, no tabs.
  201. set expandtab
  202. set shiftwidth=4
  203. set softtabstop=4
  204. set cindent
  205. set cinoptions=(0
  206. " Allow tabs in Makefiles.
  207. autocmd FileType make,automake set noexpandtab shiftwidth=8 softtabstop=8
  208. " Trailing whitespace and tabs are forbidden, so highlight them.
  209. highlight ForbiddenWhitespace ctermbg=red guibg=red
  210. match ForbiddenWhitespace /\s\+$\|\t/
  211. " Do not highlight spaces at the end of line while typing on that line.
  212. autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@@<!$/
  213. @end example
  214. For Emacs, add these roughly equivalent lines to your @file{.emacs.d/init.el}:
  215. @example
  216. (c-add-style "libav"
  217. '("k&r"
  218. (c-basic-offset . 4)
  219. (indent-tabs-mode . nil)
  220. (show-trailing-whitespace . t)
  221. (c-offsets-alist
  222. (statement-cont . (c-lineup-assignments +)))
  223. )
  224. )
  225. (setq c-default-style "libav")
  226. @end example
  227. @section Development Policy
  228. @enumerate
  229. @item
  230. Contributions should be licensed under the
  231. @uref{http://www.gnu.org/licenses/lgpl-2.1.html, LGPL 2.1},
  232. including an "or any later version" clause, or, if you prefer
  233. a gift-style license, the
  234. @uref{http://opensource.org/licenses/isc-license.txt, ISC} or
  235. @uref{http://mit-license.org/, MIT} license.
  236. @uref{http://www.gnu.org/licenses/gpl-2.0.html, GPL 2} including
  237. an "or any later version" clause is also acceptable, but LGPL is
  238. preferred.
  239. @item
  240. All the patches MUST be reviewed in the mailing list before they are
  241. committed.
  242. @item
  243. The Libav coding style should remain consistent. Changes to
  244. conform will be suggested during the review or implemented on commit.
  245. @item
  246. Patches should be generated using @code{git format-patch} or directly sent
  247. using @code{git send-email}.
  248. Please make sure you give the proper credit by setting the correct author
  249. in the commit.
  250. @item
  251. The commit message should have a short first line in the form of
  252. a @samp{topic: short description} as a header, separated by a newline
  253. from the body consisting of an explanation of why the change is necessary.
  254. If the commit fixes a known bug on the bug tracker, the commit message
  255. should include its bug ID. Referring to the issue on the bug tracker does
  256. not exempt you from writing an excerpt of the bug in the commit message.
  257. If the patch is a bug fix which should be backported to stable releases,
  258. i.e. a non-API/ABI-breaking bug fix, add @code{CC: libav-stable@@libav.org}
  259. to the bottom of your commit message, and make sure to CC your patch to
  260. this address, too. Some git setups will do this automatically.
  261. @item
  262. Work in progress patches should be sent to the mailing list with the [WIP]
  263. or the [RFC] tag.
  264. @item
  265. Branches in public personal repos are advised as way to
  266. work on issues collaboratively.
  267. @item
  268. You do not have to over-test things. If it works for you and you think it
  269. should work for others, send it to the mailing list for review.
  270. If you have doubt about portability please state it in the submission so
  271. people with specific hardware could test it.
  272. @item
  273. Do not commit unrelated changes together, split them into self-contained
  274. pieces. Also do not forget that if part B depends on part A, but A does not
  275. depend on B, then A can and should be committed first and separate from B.
  276. Keeping changes well split into self-contained parts makes reviewing and
  277. understanding them on the commit log mailing list easier. This also helps
  278. in case of debugging later on.
  279. @item
  280. Patches that change behavior of the programs (renaming options etc) or
  281. public API or ABI should be discussed in depth and possible few days should
  282. pass between discussion and commit.
  283. Changes to the build system (Makefiles, configure script) which alter
  284. the expected behavior should be considered in the same regard.
  285. @item
  286. When applying patches that have been discussed (at length) on the mailing
  287. list, reference the thread in the log message.
  288. @item
  289. Subscribe to the
  290. @uref{https://lists.libav.org/mailman/listinfo/libav-devel, libav-devel} and
  291. @uref{https://lists.libav.org/mailman/listinfo/libav-commits, libav-commits}
  292. mailing lists.
  293. Bugs and possible improvements or general questions regarding commits
  294. are discussed on libav-devel. We expect you to react if problems with
  295. your code are uncovered.
  296. @item
  297. Update the documentation if you change behavior or add features. If you are
  298. unsure how best to do this, send an [RFC] patch to libav-devel.
  299. @item
  300. All discussions and decisions should be reported on the public developer
  301. mailing list, so that there is a reference to them.
  302. Other media (e.g. IRC) should be used for coordination and immediate
  303. collaboration.
  304. @item
  305. Never write to unallocated memory, never write over the end of arrays,
  306. always check values read from some untrusted source before using them
  307. as array index or other risky things. Always use valgrind to double-check.
  308. @item
  309. Remember to check if you need to bump versions for the specific libav
  310. parts (libavutil, libavcodec, libavformat) you are changing. You need
  311. to change the version integer.
  312. Incrementing the first component means no backward compatibility to
  313. previous versions (e.g. removal of a function from the public API).
  314. Incrementing the second component means backward compatible change
  315. (e.g. addition of a function to the public API or extension of an
  316. existing data structure).
  317. Incrementing the third component means a noteworthy binary compatible
  318. change (e.g. encoder bug fix that matters for the decoder).
  319. @item
  320. Compiler warnings indicate potential bugs or code with bad style.
  321. If it is a bug, the bug has to be fixed. If it is not, the code should
  322. be changed to not generate a warning unless that causes a slowdown
  323. or obfuscates the code.
  324. If a type of warning leads to too many false positives, that warning
  325. should be disabled, not the code changed.
  326. @item
  327. If you add a new file, give it a proper license header. Do not copy and
  328. paste it from a random place, use an existing file as template.
  329. @end enumerate
  330. We think our rules are not too hard. If you have comments, contact us.
  331. @section Submitting patches
  332. First, read the @ref{Coding Rules} above if you did not yet, in particular
  333. the rules regarding patch submission.
  334. As stated already, please do not submit a patch which contains several
  335. unrelated changes.
  336. Split it into separate, self-contained pieces. This does not mean splitting
  337. file by file. Instead, make the patch as small as possible while still
  338. keeping it as a logical unit that contains an individual change, even
  339. if it spans multiple files. This makes reviewing your patches much easier
  340. for us and greatly increases your chances of getting your patch applied.
  341. Use the patcheck tool of Libav to check your patch.
  342. The tool is located in the tools directory.
  343. Run the @ref{Regression Tests} before submitting a patch in order to verify
  344. it does not cause unexpected problems.
  345. It also helps quite a bit if you tell us what the patch does (for example
  346. 'replaces lrint by lrintf'), and why (for example '*BSD isn't C99 compliant
  347. and has no lrint()'). This kind of explanation should be the body of the
  348. commit message.
  349. Also please if you send several patches, send each patch as a separate mail,
  350. do not attach several unrelated patches to the same mail.
  351. Patches should be posted to the
  352. @uref{https://lists.libav.org/mailman/listinfo/libav-devel, libav-devel}
  353. mailing list. Use @code{git send-email} when possible since it will properly
  354. send patches without requiring extra care. If you cannot, then send patches
  355. as base64-encoded attachments, so your patch is not trashed during
  356. transmission.
  357. Your patch will be reviewed on the mailing list. You will likely be asked
  358. to make some changes and are expected to send in an improved version that
  359. incorporates the requests from the review. This process may go through
  360. several iterations. Once your patch is deemed good enough, it will be
  361. committed to the official Libav tree.
  362. Give us a few days to react. But if some time passes without reaction,
  363. send a reminder by email. Your patch should eventually be dealt with.
  364. @section New codecs or formats checklist
  365. @enumerate
  366. @item
  367. Did you use av_cold for codec initialization and close functions?
  368. @item
  369. Did you add a long_name under NULL_IF_CONFIG_SMALL to the AVCodec or
  370. AVInputFormat/AVOutputFormat struct?
  371. @item
  372. Did you bump the minor version number (and reset the micro version
  373. number) in @file{libavcodec/version.h} or @file{libavformat/version.h}?
  374. @item
  375. Did you register it in @file{allcodecs.c} or @file{allformats.c}?
  376. @item
  377. Did you add the AVCodecID to @file{avcodec.h}?
  378. When adding new codec IDs, also add an entry to the codec descriptor
  379. list in @file{libavcodec/codec_desc.c}.
  380. @item
  381. If it has a FourCC, did you add it to @file{libavformat/riff.c},
  382. even if it is only a decoder?
  383. @item
  384. Did you add a rule to compile the appropriate files in the Makefile?
  385. Remember to do this even if you are just adding a format to a file that
  386. is already being compiled by some other rule, like a raw demuxer.
  387. @item
  388. Did you add an entry to the table of supported formats or codecs in
  389. @file{doc/general.texi}?
  390. @item
  391. Did you add an entry in the Changelog?
  392. @item
  393. If it depends on a parser or a library, did you add that dependency in
  394. configure?
  395. @item
  396. Did you @code{git add} the appropriate files before committing?
  397. @item
  398. Did you make sure it compiles standalone, i.e. with
  399. @code{configure --disable-everything --enable-decoder=foo}
  400. (or @code{--enable-demuxer} or whatever your component is)?
  401. @end enumerate
  402. @section patch submission checklist
  403. @enumerate
  404. @item
  405. Does @code{make check} pass with the patch applied?
  406. @item
  407. Is the patch against latest Libav git master branch?
  408. @item
  409. Are you subscribed to the
  410. @uref{https://lists.libav.org/mailman/listinfo/libav-devel, libav-devel}
  411. mailing list? (Only list subscribers are allowed to post.)
  412. @item
  413. Have you checked that the changes are minimal, so that the same cannot be
  414. achieved with a smaller patch and/or simpler final code?
  415. @item
  416. If the change is to speed critical code, did you benchmark it?
  417. @item
  418. If you did any benchmarks, did you provide them in the mail?
  419. @item
  420. Have you checked that the patch does not introduce buffer overflows or
  421. other security issues?
  422. @item
  423. Did you test your decoder or demuxer against damaged data? If no, see
  424. tools/trasher, the noise bitstream filter, and
  425. @uref{http://caca.zoy.org/wiki/zzuf, zzuf}. Your decoder or demuxer
  426. should not crash, end in a (near) infinite loop, or allocate ridiculous
  427. amounts of memory when fed damaged data.
  428. @item
  429. Does the patch not mix functional and cosmetic changes?
  430. @item
  431. Did you add tabs or trailing whitespace to the code? Both are forbidden.
  432. @item
  433. Is the patch attached to the email you send?
  434. @item
  435. Is the mime type of the patch correct? It should be text/x-diff or
  436. text/x-patch or at least text/plain and not application/octet-stream.
  437. @item
  438. If the patch fixes a bug, did you provide a verbose analysis of the bug?
  439. @item
  440. If the patch fixes a bug, did you provide enough information, including
  441. a sample, so the bug can be reproduced and the fix can be verified?
  442. Note please do not attach samples >100k to mails but rather provide a
  443. URL, you can upload to ftp://upload.libav.org
  444. @item
  445. Did you provide a verbose summary about what the patch does change?
  446. @item
  447. Did you provide a verbose explanation why it changes things like it does?
  448. @item
  449. Did you provide a verbose summary of the user visible advantages and
  450. disadvantages if the patch is applied?
  451. @item
  452. Did you provide an example so we can verify the new feature added by the
  453. patch easily?
  454. @item
  455. If you added a new file, did you insert a license header? It should be
  456. taken from Libav, not randomly copied and pasted from somewhere else.
  457. @item
  458. You should maintain alphabetical order in alphabetically ordered lists as
  459. long as doing so does not break API/ABI compatibility.
  460. @item
  461. Lines with similar content should be aligned vertically when doing so
  462. improves readability.
  463. @item
  464. Make sure you check the return values of function and return appropriate
  465. error codes. Especially memory allocation functions like @code{malloc()}
  466. are notoriously left unchecked, which is a serious problem.
  467. @end enumerate
  468. @section Patch review process
  469. All patches posted to the
  470. @uref{https://lists.libav.org/mailman/listinfo/libav-devel, libav-devel}
  471. mailing list will be reviewed, unless they contain a
  472. clear note that the patch is not for the git master branch.
  473. Reviews and comments will be posted as replies to the patch on the
  474. mailing list. The patch submitter then has to take care of every comment,
  475. that can be by resubmitting a changed patch or by discussion. Resubmitted
  476. patches will themselves be reviewed like any other patch. If at some point
  477. a patch passes review with no comments then it is approved, that can for
  478. simple and small patches happen immediately while large patches will generally
  479. have to be changed and reviewed many times before they are approved.
  480. After a patch is approved it will be committed to the repository.
  481. We will review all submitted patches, but sometimes we are quite busy so
  482. especially for large patches this can take several weeks.
  483. When resubmitting patches, if their size grew or during the review different
  484. issues arisen please split the patch so each issue has a specific patch.
  485. @anchor{Regression Tests}
  486. @section Regression Tests
  487. Before submitting a patch (or committing to the repository), you should at
  488. least make sure that it does not break anything.
  489. If the code changed has already a test present in FATE you should run it,
  490. otherwise it is advised to add it.
  491. Improvements to a codec or demuxer might change the FATE results. Make sure
  492. to commit the update reference with the change and to explain in the comment
  493. why the expected result changed.
  494. Please refer to @url{fate.html}.
  495. @subsection Visualizing Test Coverage
  496. The Libav build system allows visualizing the test coverage in an easy
  497. manner with the coverage tools @code{gcov}/@code{lcov}. This involves
  498. the following steps:
  499. @enumerate
  500. @item
  501. Configure to compile with instrumentation enabled:
  502. @code{configure --toolchain=gcov}.
  503. @item
  504. Run your test case, either manually or via FATE. This can be either
  505. the full FATE regression suite, or any arbitrary invocation of any
  506. front-end tool provided by Libav, in any combination.
  507. @item
  508. Run @code{make lcov} to generate coverage data in HTML format.
  509. @item
  510. View @code{lcov/index.html} in your preferred HTML viewer.
  511. @end enumerate
  512. You can use the command @code{make lcov-reset} to reset the coverage
  513. measurements. You will need to rerun @code{make lcov} after running a
  514. new test.
  515. @subsection Using Valgrind
  516. The configure script provides a shortcut for using valgrind to spot bugs
  517. related to memory handling. Just add the option
  518. @code{--toolchain=valgrind-memcheck} or @code{--toolchain=valgrind-massif}
  519. to your configure line, and reasonable defaults will be set for running
  520. FATE under the supervision of either the @strong{memcheck} or the
  521. @strong{massif} tool of the valgrind suite.
  522. In case you need finer control over how valgrind is invoked, use the
  523. @code{--target-exec='valgrind <your_custom_valgrind_options>} option in
  524. your configure line instead.
  525. @anchor{Release process}
  526. @section Release process
  527. Libav maintains a set of @strong{release branches}, which are the
  528. recommended deliverable for system integrators and distributors (such as
  529. Linux distributions, etc.). At irregular times, a @strong{release
  530. manager} prepares, tests and publishes tarballs on the
  531. @url{http://libav.org} website.
  532. There are two kinds of releases:
  533. @enumerate
  534. @item
  535. @strong{Major releases} always include the latest and greatest
  536. features and functionality.
  537. @item
  538. @strong{Point releases} are cut from @strong{release} branches,
  539. which are named @code{release/X}, with @code{X} being the release
  540. version number.
  541. @end enumerate
  542. Note that we promise to our users that shared libraries from any Libav
  543. release never break programs that have been @strong{compiled} against
  544. previous versions of @strong{the same release series} in any case!
  545. However, from time to time, we do make API changes that require adaptations
  546. in applications. Such changes are only allowed in (new) major releases and
  547. require further steps such as bumping library version numbers and/or
  548. adjustments to the symbol versioning file. Please discuss such changes
  549. on the @strong{libav-devel} mailing list in time to allow forward planning.
  550. @anchor{Criteria for Point Releases}
  551. @subsection Criteria for Point Releases
  552. Changes that match the following criteria are valid candidates for
  553. inclusion into a point release:
  554. @enumerate
  555. @item
  556. Fixes a security issue, preferably identified by a @strong{CVE
  557. number} issued by @url{http://cve.mitre.org/}.
  558. @item
  559. Fixes a documented bug in @url{http://bugzilla.libav.org}.
  560. @item
  561. Improves the included documentation.
  562. @item
  563. Retains both source code and binary compatibility with previous
  564. point releases of the same release branch.
  565. @end enumerate
  566. The order for checking the rules is (1 OR 2 OR 3) AND 4.
  567. All Libav developers are welcome to nominate commits that they push to
  568. @code{master} by mailing the @strong{libav-stable} mailing list. The
  569. easiest way to do so is to include @code{CC: libav-stable@@libav.org} in
  570. the commit message.
  571. @subsection Release Checklist
  572. The release process involves the following steps:
  573. @enumerate
  574. @item
  575. Ensure that the @file{RELEASE} file contains the version number for
  576. the upcoming release.
  577. @item
  578. File a release tracking bug in @url{http://bugzilla.libav.org}. Make
  579. sure that the bug has an alias named @code{ReleaseX.Y} for the
  580. @code{X.Y} release.
  581. @item
  582. Announce the intent to do a release to the mailing list.
  583. @item
  584. Reassign unresolved blocking bugs from previous release
  585. tracking bugs to the new bug.
  586. @item
  587. Review patch nominations that reach the @strong{libav-stable}
  588. mailing list, and push patches that fulfill the stable release
  589. criteria to the release branch.
  590. @item
  591. Ensure that the FATE regression suite still passes in the release
  592. branch on at least @strong{i386} and @strong{amd64}
  593. (cf. @ref{Regression Tests}).
  594. @item
  595. Prepare the release tarballs in @code{xz} and @code{gz} formats, and
  596. supplementing files that contain @code{md5} and @code{sha1}
  597. checksums.
  598. @item
  599. Publish the tarballs at @url{http://libav.org/releases}. Create and
  600. push an annotated tag in the form @code{vX}, with @code{X}
  601. containing the version number.
  602. @item
  603. Build the tarballs with the Windows binaries, and publish them at
  604. @url{http://win32.libav.org/releases}.
  605. @item
  606. Propose and send a patch to the @strong{libav-devel} mailing list
  607. with a news entry for the website.
  608. @item
  609. Publish the news entry.
  610. @item
  611. Send announcement to the mailing list.
  612. @end enumerate
  613. @bye