Browse Source

Add reminders to update the codec descriptor list with new codec IDs.

tags/n1.0
Anton Khirnov 13 years ago
parent
commit
bbabeb56fa
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      doc/developer.texi
  2. +3
    -0
      libavcodec/avcodec.h

+ 2
- 0
doc/developer.texi View File

@@ -404,6 +404,8 @@ send a reminder by email. Your patch should eventually be dealt with.
Did you register it in @file{allcodecs.c} or @file{allformats.c}? Did you register it in @file{allcodecs.c} or @file{allformats.c}?
@item @item
Did you add the AVCodecID to @file{avcodec.h}? Did you add the AVCodecID to @file{avcodec.h}?
When adding new codec IDs, also add an entry to the codec descriptor
list in @file{libavcodec/codec_desc.c}.
@item @item
If it has a fourcc, did you add it to @file{libavformat/riff.c}, If it has a fourcc, did you add it to @file{libavformat/riff.c},
even if it is only a decoder? even if it is only a decoder?


+ 3
- 0
libavcodec/avcodec.h View File

@@ -88,6 +88,9 @@
* If you add a codec ID to this list, add it so that * If you add a codec ID to this list, add it so that
* 1. no value of a existing codec ID changes (that would break ABI), * 1. no value of a existing codec ID changes (that would break ABI),
* 2. it is as close as possible to similar codecs. * 2. it is as close as possible to similar codecs.
*
* After adding new codec IDs, do not forget to add an entry to the codec
* descriptor list and bump libavcodec minor version.
*/ */
enum AVCodecID { enum AVCodecID {
AV_CODEC_ID_NONE, AV_CODEC_ID_NONE,


Loading…
Cancel
Save