Provide necessary codec structure for compatibility with ffmpeg.

As asked for by Diego in issue #23 .