Rename av_encode() to av_transcode(), the new name is more meaningful.