[FFmpeg-cvslog] avcodec: Resolve the codec_id compatibility issue.

Michael Niedermayer git at videolan.org
Fri Oct 28 01:47:18 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 24 21:21:45 2011 +0200| [2179fc48b2752ab7de23ce75352796889febc41a] | committer: Michael Niedermayer

avcodec: Resolve the codec_id compatibility issue.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2179fc48b2752ab7de23ce75352796889febc41a
---

 libavcodec/avcodec.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 15dc203..401ce32 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -47,7 +47,8 @@
  *
  * 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.
+ * 2. Give it a value which when taken as ASCII is recognized uniquely by a human as this specific codec.
+ *    This ensures that 2 forks can independantly add CodecIDs without producing conflicts.
  */
 enum CodecID {
     CODEC_ID_NONE,



More information about the ffmpeg-cvslog mailing list