avcodec: better level/index printing