As requested by someone (broken file), I've attached the getcodecid project by AnV that work under ARC, with the fix described above (post 19), so non more memory leak.
The deployment target is set to 10.7 (due to the ARC technology you need at least Lion to compile it) but it should work in 10.6 on (was tested) and probably in 10.5 too where the Obj-C 2.0 was introduced (not tested).
I dont't have the non-ARC project, AnV probably have a copy of it's own work
project contain a pre-built getcodecid command ready to use
Thank you micky ,, working awesome ..