Looking at the doxygen documentation I noticed that avcodec_decode_audio should return 0 if successful and -1 if not, however I've found that this function returns the number of bytes used much the same way that avcodec_decode_video is implemented. Is this a mistake in documentation or in code? Thanks, RichieK.