avcodec: Add av_cold attributes to end functions missing them