aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-28 10:16:53 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-29 10:47:59 +0200
commitbbabeb56fac38347b976e7b84639de53306e4bf2 (patch)
tree0cb732f63f5f65375174b00e0f51db9951e58ca3
parent7baa115a33ab516c85ac94f6c5cdaee73e65ddf8 (diff)
downloadffmpeg-bbabeb56fac38347b976e7b84639de53306e4bf2.tar.gz
Add reminders to update the codec descriptor list with new codec IDs.
-rw-r--r--doc/developer.texi2
-rw-r--r--libavcodec/avcodec.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/developer.texi b/doc/developer.texi
index ae9609dae6..aff28b845e 100644
--- a/doc/developer.texi
+++ b/doc/developer.texi
@@ -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}?
@item
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
If it has a fourcc, did you add it to @file{libavformat/riff.c},
even if it is only a decoder?
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9658b67ab6..07d75c2692 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -88,6 +88,9 @@
* 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),
* 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 {
AV_CODEC_ID_NONE,