[Ffmpeg-devel] [PATCH] change the way version numbers are defined

ramiro at lisha.ufsc.br ramiro
Thu Dec 21 23:35:23 CET 2006


Hello,

While making the dllinfo.rc files for Windows in a way that didn't
hardcode version info inside it, I found it best to dismember version
numbers into major, minor and revision, and regroup them where necessary.
*.rc files need version info with four fields, and separated by commas. So
what I did in all .h files that defined versions:

- dismember *_VERSION into *_MAJOR, *_MINOR, and *_REVISION
- changed *_VERSION to *_MAJOR.*_MINOR.*_REVISION
- changed *_VERSION_INT to use the new defines too
- changed configure to read each part of version and regroup them

It somewhat bloats configure, but that can probably be made smaller.
It will be simpler this way to change version numbers when needed, since
there's only one define to change. (does not duplicate version numbers in
*_VERSION and *_VERSION_INT)

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_version_1.patch
Type: application/octet-stream
Size: 7035 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061221/577a3aee/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale_version_1.patch
Type: application/octet-stream
Size: 832 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061221/577a3aee/attachment-0001.obj>



More information about the ffmpeg-devel mailing list