Move the video size and rate abbreviations system from libavformat to libavcodec