libavcodec: Reduce the size of some arrays