fixing avcodec. moving const out of place fixes type definitions.
fixing ffmpeg-1.2: next part.